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 { [Table("ELECTRICALTESTINGPOINTDI2")] public class ElectricalTestingPointDI : TestingPointBase, INotifyPropertyChanged { private string _id; private string _stationId; private string _uniformCode; private string _name; [Column("ID")] public string Id { get { return _id; } set { _id = value; RaisePropertyChanged(); } } [Column("WINDPOWERSTATIONID")] public string WindPowerStationId { get { return _stationId; } set { _stationId = value; RaisePropertyChanged(); } } [Column("CODE")] public override string UniformCode { get { return _uniformCode; } set { _uniformCode = value; RaisePropertyChanged(); } } [Column("NAME")] public override string Name { get { return _name; } set { _name = value; RaisePropertyChanged(); } } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }