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; using System.Runtime.Serialization; using System.ServiceModel; namespace GDNXFD.Data { [DataContract] [Table("P3_DEVICE_FAULT")] public class DeviceFault: INotifyPropertyChanged { [DataMember] [Column("ID")] public string ID { get; set; } [DataMember] [Column("CODE")] public string code { get; set; } [DataMember] [Column("FAULTID")] public string FaultId { get; set; } [DataMember] [Column("NAME")] public string Name { get; set; } [DataMember] [Column("HALTTYPE")] public string HaltType { get; set; } [DataMember] [Column("CATEGORY")] public string CateGory { get; set; } [DataMember] [Column("FAULTLEVEL")] public int FaultLevel { get; set; } [DataMember] [Column("CAUSE")] public string Cause { get; set; } [DataMember] [Column("DEVICEMODEL")] public string DeviceModel { get; set; } /// /// Property changed event /// public event PropertyChangedEventHandler PropertyChanged; private void RaisePropertyChanged([CallerMemberName] string caller = "") { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(caller)); } } } }