123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- 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 "SA"."WINDTURBINETESTINGPOINTAI"
- // ( "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(100),
- //"WINDPOWERSTATIONID" VARCHAR2(50),
- //"REALTIMEID" VARCHAR2(50),
- // CONSTRAINT "PK_WINDTURBINETESTINGPOINTAI" PRIMARY KEY("ID")
- // USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
- // STORAGE(INITIAL 2097152 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
- // )
- [Table("WINDTURBINETESTINGPOINTAI2")]
- public class WindTurbineTestingPointAI : 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();
- // }
- //}
- /// <summary>
- /// Property changed event
- /// </summary>
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged([CallerMemberName] string caller = "")
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(caller));
- }
- }
- }
- }
|