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 { [DataContract] [Table("VIEW_SHUTDOWNEVENT")] public class ShutdownEvent : INotifyPropertyChanged { [DataMember] [Column("ID")] public string Id { get; set; } [DataMember] [Column("WINDTURBINEID")] public string WindturbineId { get; set; } [DataMember] [Column("WTNAME")] public string WtName { get; set; } [DataMember] [Column("STOPTIME")] public DateTime StopTime { get; set; } [DataMember] [Column("STOPHOURS")] //报警时间 public double StopHours { get; set; } [DataMember] [Column("STOPTYPEID")] public string StopTypeId { get; set; } [DataMember] [Column("TYPENAME")] public string TypeName { get; set; } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }