ModelPowerDetails.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.ComponentModel;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Runtime.CompilerServices;
  4. namespace GDNXFD.Data
  5. {
  6. // CREATE TABLE "NXFDPROD"."MODELPOWERDETAILS"
  7. // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
  8. //"MODELID" VARCHAR2(50),
  9. //"SPEED" NUMBER(18,2),
  10. //"THEORYPOWER" NUMBER(18,2),
  11. //"ENSUREPOWER" NUMBER(18,2),
  12. // CONSTRAINT "PK_MODELPOWERDETAILS" PRIMARY KEY("ID")
  13. [Table("MODELPOWERDETAILS")]
  14. public class ModelPowerDetails : INotifyPropertyChanged
  15. {
  16. [Column("ID")]
  17. public string Id { get; set; }
  18. [Column("MODELID")]
  19. public string ModelID { get; set; }
  20. [Column("SPEED")]
  21. public double Speed { get; set; }
  22. [Column("THEORYPOWER")]
  23. public double TheoryPower { get; set; }
  24. [Column("ENSUREPOWER")]
  25. public double EnsurePower { get; set; }
  26. /// <summary>
  27. /// Property changed event
  28. /// </summary>
  29. public event PropertyChangedEventHandler PropertyChanged;
  30. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  31. {
  32. if (PropertyChanged != null)
  33. {
  34. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  35. }
  36. }
  37. }
  38. }