using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace GDNXFD.Data { // CREATE TABLE "NXFDPROD"."WINDTURBINETESTINGPOINTDI" // ( "ID" VARCHAR2(50) NOT NULL ENABLE, //"CODE" VARCHAR2(50), //"NAME" VARCHAR2(300), //"MODEL" VARCHAR2(50), //"VALUEUNIT" VARCHAR2(50), //"ENGLISHNAME" VARCHAR2(50), //"TYPEID" VARCHAR2(50), //"MODELID" VARCHAR2(50), //"MAXVAL" NUMBER(18,2), //"MINVAL" NUMBER(18,2), //"REASONABLEMAXVAL" NUMBER(18,2), //"REASONABLEMINVAL" NUMBER(18,2), //"WINDTURBINEID" VARCHAR2(50), //"UNIFORMCODE" VARCHAR2(50), //"SHORTID" VARCHAR2(50), //"LONGID" VARCHAR2(150), //"WINDPOWERSTATIONID" VARCHAR2(50), //"REALTIMEID" VARCHAR2(50), // CONSTRAINT "PK_WINDTURBINETESTINGPOINTDI" PRIMARY KEY("ID") // USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS // STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 // PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) // TABLESPACE "TS_NXFD_DATA" ENABLE // ) [Table("WINDTURBINETESTINGPOINTDI2")] public class WindTurbineTestingPointDI : INotifyPropertyChanged { private string _id; private string _windturbineId; private string _uniformCode; //private string _code; //private string _model; //private string _modelId; //private string _valueUnit; //private string _name; //private string _englishName; //private string _typeId; //private double _maxVal; //private double _minVal; //private double _reasonableMaxVal; //private double _reasonableMinVal; //private string _shortId; //private string _longId; //private string _windPowerStationId; //private string _realTimeId; [Column("ID")] public string Id { get { return _id; } set { _id = value; RaisePropertyChanged(); } } [Column("WINDTURBINEID")] public string WindturbineId { get { return _windturbineId; } set { _windturbineId = value; RaisePropertyChanged(); } } [Column("UNIFORMCODE")] public string UniformCode { get { return _uniformCode; } set { _uniformCode = value; RaisePropertyChanged(); } } //[Column("CODE")] //public string Code //{ // get { return _code; } // set // { // _code = value; // RaisePropertyChanged(); // } //} //[Column("MODEL")] //public string Model //{ // get { return _model; } // set // { // _model = value; // RaisePropertyChanged(); // } //} //[Column("MODELID")] //public string ModelId //{ // get { return _modelId; } // set // { // _modelId = value; // RaisePropertyChanged(); // } //} //[Column("NAME")] //public string Name //{ // get { return _name; } // set // { // _name = value; // RaisePropertyChanged(); // } //} //[Column("ENGLISHNAME")] //public string EnglishName //{ // get { return _englishName; } // set // { // _englishName = value; // RaisePropertyChanged(); // } //} //[Column("VALUEUNIT")] //public string ValueUnit //{ // get { return _valueUnit; } // set // { // _valueUnit = value; // RaisePropertyChanged(); // } //} //[Column("MAXVAL")] //public double MaxVal //{ // get { return _maxVal; } // set // { // _maxVal = value; // RaisePropertyChanged(); // } //} //[Column("MINVAL")] //public double MinVal //{ // get { return _minVal; } // set // { // _minVal = value; // RaisePropertyChanged(); // } //} //[Column("REASONABLEMAXVAL")] //public double ReasonableMaxVal //{ // get { return _reasonableMaxVal; } // set // { // _reasonableMaxVal = value; // RaisePropertyChanged(); // } //} //[Column("REASONABLEMINVAL")] //public double ReasonableMinVal //{ // get { return _reasonableMinVal; } // set // { // _reasonableMinVal = value; // RaisePropertyChanged(); // } //} //[Column("TYPEID")] //public string TypeId //{ // get { return _typeId; } // set // { // _typeId = value; // RaisePropertyChanged(); // } //} //[Column("SHORTID")] //public string ShortId //{ // get { return _shortId; } // set // { // _shortId = value; // RaisePropertyChanged(); // } //} //[Column("LONGID")] //public string LongId //{ // get { return _longId; } // set // { // _longId = value; // RaisePropertyChanged(); // } //} //[Column("WINDPOWERSTATIONID")] //public string WindPowerStationId //{ // get { return _windPowerStationId; } // set // { // _windPowerStationId = value; // RaisePropertyChanged(); // } //} //[Column("REALTIMEID")] //public string RealTimeId //{ // get { return _realTimeId; } // set // { // _realTimeId = value; // RaisePropertyChanged(); // } //} /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }