using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace GDNXFD.Data { //ID STATIONID PROJECTID LINEID WINDTURBINEID CATEGORY //STARTPLANTIME ENDPLANTIME OPERATOR WINDTURBINENAME //STATIONNAME PROJECTNAME LINENAME [DataContract] [Table("MAINTAINPLAN")] public class MaintainPlan : INotifyPropertyChanged { [DataMember] [Column("ID")] public string Id { get; set; } [DataMember] [Column("STATIONID")] public string StationId { get; set; } [DataMember] [Column("PROJECTID")] public string ProjectId { get; set; } [DataMember] [Column("LINEID")] public string LineId { get; set; } [DataMember] [Column("WINDTURBINEID")] public string WindturbineId { get; set; } [DataMember] [Column("CATEGORY")] public long Category { get; set; } [DataMember] [Column("STARTPLANTIME")] public DateTime StartPlanTime { get; set; } [DataMember] [Column("ENDPLANTIME")] public DateTime EndPlanTime { get; set; } [DataMember] [Column("OPERATOR")] public string Operator { get; set; } [DataMember] [Column("STATIONNAME")] public string StationName { get; set; } [DataMember] [Column("PROJECTNAME")] public string ProjectName { get; set; } [DataMember] [Column("LINENAME")] public string LineName { get; set; } [DataMember] [Column("WINDTURBINENAME")] public string WindturbineName { get; set; } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }