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; } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }