WindPowerStationTestingPoint.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace GDNXFD.Data
  10. {
  11. [Table("WINDPOWERSTATIONTESTINGPOINT")]
  12. public class WindPowerStationTestingPoint : INotifyPropertyChanged
  13. {
  14. private string _id;
  15. private string _stationId;
  16. private string _uniformCode;
  17. [Column("CODE")]
  18. public string Id
  19. {
  20. get { return _id; }
  21. set
  22. {
  23. _id = value;
  24. RaisePropertyChanged();
  25. }
  26. }
  27. [Column("WINDPOWERSTATIONID")]
  28. public string StationId
  29. {
  30. get { return _stationId; }
  31. set
  32. {
  33. _stationId = value;
  34. RaisePropertyChanged();
  35. }
  36. }
  37. [Column("UNIFORMCODE")]
  38. public string UniformCode
  39. {
  40. get { return _uniformCode; }
  41. set
  42. {
  43. _uniformCode = value;
  44. RaisePropertyChanged();
  45. }
  46. }
  47. /// <summary>
  48. /// Property changed event
  49. /// </summary>
  50. public event PropertyChangedEventHandler PropertyChanged;
  51. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  52. {
  53. if (PropertyChanged != null)
  54. {
  55. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  56. }
  57. }
  58. }
  59. }