using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace GDNXFD.Data { // CREATE TABLE "SA"."PROJECT" // ( "ID" VARCHAR2(50) NOT NULL ENABLE, //"CODE" VARCHAR2(50), //"NAME" VARCHAR2(50), //"ANAME" VARCHAR2(50), //"WINDPOWERSTATIONID" VARCHAR2(50) NOT NULL ENABLE, //"CAPACITY" NUMBER(18,2), //"CAPACITYUNIT" VARCHAR2(50), //"QUANTITY" NUMBER(*,0), //"MODEL" VARCHAR2(50), //"COMMISSIONDATE" DATE, //"MASTERPHONE" VARCHAR2(50), //"SHIFTFOREMAN" VARCHAR2(50), //"SHIFTFOREMANPHONE" VARCHAR2(50), //"ORDERNUM" NUMBER(*,0), // CONSTRAINT "PK_PROJECT" PRIMARY KEY("ID") [Table("PROJECT")] public class Project : INotifyPropertyChanged { private string _id; private string _name; private string _windPowerStation; private string _models; [Column("ID")] public string Id { get { return _id; } set { _id = value; RaisePropertyChanged(); } } [Column("NAME")] public string Name { get { return _name; } set { _name = value; RaisePropertyChanged(); } } [Column("WINDPOWERSTATIONID")] public string WindPowerStationId { get { return _windPowerStation; } set { _windPowerStation = value; RaisePropertyChanged(); } } [Column("MODEL")] public string Models { get { return _models; } set { _models = value; RaisePropertyChanged(); } } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }