EnquipmentModel.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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("EQUIPMENTMODEL")]
  12. public class EquipmentModel : INotifyPropertyChanged
  13. {
  14. //ID, CODE, NAME, DESCRIPTION, POWERPRODUCTION, CUTINWINDSPEED,
  15. //RATEDWINDSPEED, CUTOUTWINDSPEED, WINDTURBINEMANUFACTURERID, PHOTO,
  16. //UNIT, SWEPTAREA, EQUIPMENTCATEGORY
  17. [Column("ID")]
  18. public string Id { get; set; }
  19. [Column("CODE")]
  20. public string Code { get; set; }
  21. [Column("NAME")]
  22. public string Name { get; set; }
  23. [Column("DESCRIPTION")]
  24. public string Description { get; set; }
  25. [Column("POWERPRODUCTION")]
  26. public decimal? PowerProduction { get; set; }
  27. [Column("CUTINWINDSPEED")]
  28. public decimal? CutinWindspeed { get; set; }
  29. [Column("RATEDWINDSPEED")]
  30. public decimal? RatedWindspeed { get; set; }
  31. [Column("SWEPTAREA")]
  32. public decimal? SweptArea { get; set; }
  33. [Column("CUTOUTWINDSPEED")]
  34. public string CutoutWindspeed { get; set; }
  35. [Column("WINDTURBINEMANUFACTURERID")]
  36. public string WindTurbineManufacturerId { get; set; }
  37. [Column("PHOTO")]
  38. public string Photo { get; set; }
  39. [Column("UNIT")]
  40. public string Unit { get; set; }
  41. [Column("EQUIPMENTCATEGORY")]
  42. public string EquipmentCategory { get; set; }
  43. /// <summary>
  44. /// Property changed event
  45. /// </summary>
  46. public event PropertyChangedEventHandler PropertyChanged;
  47. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  48. {
  49. if (PropertyChanged != null)
  50. {
  51. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  52. }
  53. }
  54. }
  55. }