using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace GDNXFD.Data { [DataContract] [Table("WARNING2")] public class Warning : INotifyPropertyChanged { [DataMember] [Column("ID")] public string Id { get; set; } [DataMember] [Column("LEVELID")] public string LevelID { get; set; } [DataMember] [Column("ENGLISHTEXT")] public string EnglishText { get; set; } [DataMember] [Column("EDNAVALUE")] public long EDnaValue { get; set; } [DataMember] [Column("WARNINGCLASSIFYID")] public string WarningClassifyId { get; set; } [DataMember] [Column("ISRESET")] public int IsReset { get; set; } [DataMember] [Column("MODELID")] public string ModelId { get; set; } [DataMember] [Column("FAULTCODE")] public string FaultCode { get; set; } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }