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"."LINE" // ( "ID" VARCHAR2(50) NOT NULL ENABLE, //"CODE" VARCHAR2(50), //"NAME" VARCHAR2(50), //"ANAME" VARCHAR2(50), //"PROJECTID" VARCHAR2(50), //"ORDERNUM" NUMBER(*,0), //"CAPACITY" NUMBER(18,2), //"CAPACITYUNIT" VARCHAR2(50), //"QUANTITY" NUMBER(*,0), // CONSTRAINT "PK_LINE" PRIMARY KEY("ID") [Table("LINE")] public class Line : INotifyPropertyChanged { private string _id; private string _name; private string _projectId; [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("PROJECTID")] public string ProjectId { get { return _projectId; } set { _projectId = value; RaisePropertyChanged(); } } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }