1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Runtime.CompilerServices;
- namespace GDNXFD.Data
- {
- // CREATE TABLE "NXFDPROD"."MODELPOWERDETAILS"
- // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
- //"MODELID" VARCHAR2(50),
- //"SPEED" NUMBER(18,2),
- //"THEORYPOWER" NUMBER(18,2),
- //"ENSUREPOWER" NUMBER(18,2),
- // CONSTRAINT "PK_MODELPOWERDETAILS" PRIMARY KEY("ID")
- [Table("MODELPOWERDETAILS")]
- public class ModelPowerDetails : INotifyPropertyChanged
- {
- [Column("ID")]
- public string Id { get; set; }
- [Column("MODELID")]
- public string ModelID { get; set; }
- [Column("SPEED")]
- public double Speed { get; set; }
- [Column("THEORYPOWER")]
- public double TheoryPower { get; set; }
- [Column("ENSUREPOWER")]
- public double EnsurePower { get; set; }
- /// <summary>
- /// Property changed event
- /// </summary>
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged([CallerMemberName] string caller = "")
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(caller));
- }
- }
- }
- }
|