WindPowerStation.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Runtime.Serialization;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace GDNXFD.Data
  11. {
  12. // CREATE TABLE "SA"."WINDPOWERSTATION"
  13. // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
  14. //"CODE" VARCHAR2(50),
  15. //"NAME" VARCHAR2(50) NOT NULL ENABLE,
  16. //"ADDRESS" VARCHAR2(200),
  17. //"TELEPHONE" VARCHAR2(50),
  18. //"CAPACITY" NUMBER(18,2),
  19. //"CAPACITYUNIT" VARCHAR2(50),
  20. //"QUANTITY" NUMBER(*,0),
  21. //"ANAME" VARCHAR2(50),
  22. //"LONGITUDE" NUMBER(18,2),
  23. //"LATITUDE" NUMBER(18,2),
  24. //"PHOTO" VARCHAR2(50),
  25. //"COMPANYID" VARCHAR2(50),
  26. //"SYSTEMMANUFACT" VARCHAR2(100),
  27. //"HEADFARM" VARCHAR2(50),
  28. //"HEADFARMPHONE" VARCHAR2(50),
  29. //"MODEL" VARCHAR2(100),
  30. //"ORDERNUM" NUMBER(*,0),
  31. //"ALTITUDE" NUMBER(18,2),
  32. // CONSTRAINT "PK_WINDPOWERSTATION" PRIMARY KEY("ID")
  33. [Table("WINDPOWERSTATION")]
  34. public class WindPowerStation : INotifyPropertyChanged
  35. {
  36. private string _id;
  37. private string _name;
  38. private string _models;
  39. private double _capacity;
  40. private double _quantity;
  41. [DataMember]
  42. [Column("ID")]
  43. public string Id
  44. {
  45. get { return _id; }
  46. set
  47. {
  48. _id = value;
  49. RaisePropertyChanged();
  50. }
  51. }
  52. [DataMember]
  53. [Column("NAME")]
  54. public string Name
  55. {
  56. get { return _name; }
  57. set
  58. {
  59. _name = value;
  60. RaisePropertyChanged();
  61. }
  62. }
  63. [DataMember]
  64. [Column("MODEL")]
  65. public string Models
  66. {
  67. get { return _models; }
  68. set
  69. {
  70. _models = value;
  71. RaisePropertyChanged();
  72. }
  73. }
  74. [DataMember]
  75. [Column("CAPACITY")]
  76. public double Capacity
  77. {
  78. get { return _capacity; }
  79. set
  80. {
  81. _capacity = value;
  82. RaisePropertyChanged();
  83. }
  84. }
  85. [DataMember]
  86. [Column("QUANTITY")]
  87. public double Quantity
  88. {
  89. get { return _quantity; }
  90. set
  91. {
  92. _quantity = value;
  93. RaisePropertyChanged();
  94. }
  95. }
  96. /// <summary>
  97. /// Property changed event
  98. /// </summary>
  99. public event PropertyChangedEventHandler PropertyChanged;
  100. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  101. {
  102. if (PropertyChanged != null)
  103. {
  104. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  105. }
  106. }
  107. }
  108. }