using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace GDNXFD.Data { // CREATE TABLE "SA"."WINDTURBINE" // ( "ID" VARCHAR2(50) NOT NULL ENABLE, //"CODE" VARCHAR2(50), //"WINDPOWERSTATIONID" VARCHAR2(50) NOT NULL ENABLE, //"LONGITUDE" NUMBER(18,2), //"LATITUDE" NUMBER(18,2), //"MODELID" VARCHAR2(50), //"STATUS" VARCHAR2(50), //"PROJECTID" VARCHAR2(50), //"LINEID" VARCHAR2(50), //"FIRSTINTEGRATEDTIME" DATE, //"PHOTO" VARCHAR2(50), //"NAME" VARCHAR2(50), //"STANDARDID" VARCHAR2(50), // CONSTRAINT "PK_WINDTURBINE" PRIMARY KEY("ID") // USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 // STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 // PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) // TABLESPACE "USERS" ENABLE // ) [DataContract] [Table("WINDTURBINE")] public class WindTurbine : INotifyPropertyChanged { private string _id; private string _code; private string _windPowerStationId; private string _name; private string _projectId; private string _lineId; private string _modelId; //private double _longitude; //private double _latitude; //private string _status; //private DateTime? _firstIntegratedTime; //private string _photo; //private string _standardId; [DataMember] [Column("ID")] public string Id { get { return _id; } set { _id = value; RaisePropertyChanged(); } } [DataMember] [Column("CODE")] public string Code { get { return _code; } set { _code = value; RaisePropertyChanged(); } } [DataMember] [Column("MODELID")] public string ModelId { get { return _modelId; } set { _modelId = value; RaisePropertyChanged(); } } [DataMember] [Column("NAME")] public string Name { get { return _name; } set { _name = value; RaisePropertyChanged(); } } [DataMember] [Column("WINDPOWERSTATIONID")] public string WindPowerStationId { get { return _windPowerStationId; } set { _windPowerStationId = value; RaisePropertyChanged(); } } [DataMember] [Column("PROJECTID")] public string ProjectId { get { return _projectId; } set { _projectId = value; RaisePropertyChanged(); } } [DataMember] [Column("LINEID")] public string LineId { get { return _lineId; } set { _lineId = value; RaisePropertyChanged(); } } //[Column("FIRSTINTEGRATEDTIME")] //public DateTime? FirstIntegratedTime //{ // get { return _firstIntegratedTime; } // set // { // _firstIntegratedTime = value; // RaisePropertyChanged(); // } //} //[Column("STATUS")] //public string Status //{ // get { return _status; } // set // { // _status = value; // RaisePropertyChanged(); // } //} //[Column("LONGITUDE")] //public double Longitude //{ // get { return _longitude; } // set // { // _longitude = value; // RaisePropertyChanged(); // } //} //[Column("LATITUDE")] //public double Latitude //{ // get { return _latitude; } // set // { // _latitude = value; // RaisePropertyChanged(); // } //} //[Column("PHOTO")] //public string Photo //{ // get { return _photo; } // set // { // _photo = value; // RaisePropertyChanged(); // } //} //[Column("STANDARDID")] //public string StandardId //{ // get { return _standardId; } // set // { // _standardId = value; // RaisePropertyChanged(); // } //} /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }