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 { // ( "ID" NVARCHAR2(50) NOT NULL ENABLE, //"WINDPOWERSTATIONID" VARCHAR2(50), //"WINDTURBINEID" VARCHAR2(50), //"STOPTIME" DATE, //"STARTTIME" DATE, //"STOPHOURS" NUMBER(18,2), //"LOSSPOWER" NUMBER(18,2), //"STOPTYPEID" VARCHAR2(50), //"ISHANDLE" NUMBER(*,0), //"WARNINGID" VARCHAR2(50), //"PROJECTID" VARCHAR2(50), //"HANDLEWAY" VARCHAR2(200), //"FAULTVIEW" VARCHAR2(200), //"STATUSCODE" NUMBER(*,0), //"MAINID" VARCHAR2(50), //"RESETRATE" VARCHAR2(50), //"STATERATE" VARCHAR2(50), //"FAILRATE" VARCHAR2(50), //"WARNINGRECORDSID" NUMBER(*,0), [DataContract] [Table("SHUTDOWNEVENT")] public class ShutdownEvent : INotifyPropertyChanged { [DataMember] [Column("ID")] public string Id { get; set; } [DataMember] [Column("STOPTIME")] //报警时间 public DateTime StopTime { get; set; } [DataMember] [Column("WINDPOWERSTATIONID")] public string StationId { get; set; } [DataMember] [Column("WINDTURBINEID")] public string WindturbineId { get; set; } [DataMember] [Column("WARNINGID")] public string WaringId { get; set; } [DataMember] [Column("WARNINGRECORDSID")] public string WarningRecordId { get; set; } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }