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