Warning.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System.ComponentModel;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Runtime.CompilerServices;
  4. using System.Runtime.Serialization;
  5. namespace GDNXFD.Data
  6. {
  7. [DataContract]
  8. [Table("WARNING2")]
  9. public class Warning : INotifyPropertyChanged
  10. {
  11. [DataMember]
  12. [Column("ID")]
  13. public string Id { get; set; }
  14. [DataMember]
  15. [Column("LEVELID")]
  16. public string LevelID { get; set; }
  17. [DataMember]
  18. [Column("ENGLISHTEXT")]
  19. public string EnglishText { get; set; }
  20. [DataMember]
  21. [Column("EDNAVALUE")]
  22. public long EDnaValue { get; set; }
  23. [DataMember]
  24. [Column("WARNINGCLASSIFYID")]
  25. public string WarningClassifyId { get; set; }
  26. [DataMember]
  27. [Column("ISRESET")]
  28. public int IsReset { get; set; }
  29. [DataMember]
  30. [Column("MODELID")]
  31. public string ModelId { get; set; }
  32. [DataMember]
  33. [Column("FAULTCODE")]
  34. public string FaultCode { get; set; }
  35. /// <summary>
  36. /// Property changed event
  37. /// </summary>
  38. public event PropertyChangedEventHandler PropertyChanged;
  39. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  40. {
  41. if (PropertyChanged != null)
  42. {
  43. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  44. }
  45. }
  46. }
  47. }