123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Runtime.Serialization;
- using System.Text;
- using System.Threading.Tasks;
- namespace GDNXFD.Data
- {
- // CREATE TABLE "SA"."WINDPOWERSTATION"
- // ( "ID" VARCHAR2(50) NOT NULL ENABLE,
- //"CODE" VARCHAR2(50),
- //"NAME" VARCHAR2(50) NOT NULL ENABLE,
- //"ADDRESS" VARCHAR2(200),
- //"TELEPHONE" VARCHAR2(50),
- //"CAPACITY" NUMBER(18,2),
- //"CAPACITYUNIT" VARCHAR2(50),
- //"QUANTITY" NUMBER(*,0),
- //"ANAME" VARCHAR2(50),
- //"LONGITUDE" NUMBER(18,2),
- //"LATITUDE" NUMBER(18,2),
- //"PHOTO" VARCHAR2(50),
- //"COMPANYID" VARCHAR2(50),
- //"SYSTEMMANUFACT" VARCHAR2(100),
- //"HEADFARM" VARCHAR2(50),
- //"HEADFARMPHONE" VARCHAR2(50),
- //"MODEL" VARCHAR2(100),
- //"ORDERNUM" NUMBER(*,0),
- //"ALTITUDE" NUMBER(18,2),
- // CONSTRAINT "PK_WINDPOWERSTATION" PRIMARY KEY("ID")
- [Table("WINDPOWERSTATION")]
- public class WindPowerStation : INotifyPropertyChanged
- {
- private string _id;
- private string _name;
- private string _models;
- private double _capacity;
- private double _quantity;
- [DataMember]
- [Column("ID")]
- public string Id
- {
- get { return _id; }
- set
- {
- _id = value;
- RaisePropertyChanged();
- }
- }
- [DataMember]
- [Column("NAME")]
- public string Name
- {
- get { return _name; }
- set
- {
- _name = value;
- RaisePropertyChanged();
- }
- }
- [DataMember]
- [Column("MODEL")]
- public string Models
- {
- get { return _models; }
- set
- {
- _models = value;
- RaisePropertyChanged();
- }
- }
- [DataMember]
- [Column("CAPACITY")]
- public double Capacity
- {
- get { return _capacity; }
- set
- {
- _capacity = value;
- RaisePropertyChanged();
- }
- }
- [DataMember]
- [Column("QUANTITY")]
- public double Quantity
- {
- get { return _quantity; }
- set
- {
- _quantity = value;
- RaisePropertyChanged();
- }
- }
- /// <summary>
- /// Property changed event
- /// </summary>
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged([CallerMemberName] string caller = "")
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(caller));
- }
- }
- }
- }
|