//------------------------------------------------------------------------------ // // This code was generated by a tool. // Tango Observables Generator // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. Do not modify! // //------------------------------------------------------------------------------ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Xml.Serialization; using Newtonsoft.Json; using System.Linq; using Tango.DAL.Remote.DB; using Tango.Core; using System.ComponentModel; using Tango.Core.CustomAttributes; namespace Tango.BL.Entities { [Table("TECH_MONITORS")] public abstract class TechMonitorBase : ObservableEntity { public event EventHandler CodeChanged; public event EventHandler NameChanged; public event EventHandler DescriptionChanged; public event EventHandler MinChanged; public event EventHandler MaxChanged; public event EventHandler UnitsChanged; public event EventHandler PointsPerFrameChanged; public event EventHandler MultiChannelChanged; public event EventHandler ChannelCountChanged; protected Int32 _code; /// /// Gets or sets the techmonitorbase code. /// [Column("CODE")] public Int32 Code { get { return _code; } set { if (_code != value) { _code = value; OnCodeChanged(value); } } } protected String _name; /// /// Gets or sets the techmonitorbase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected String _description; /// /// Gets or sets the techmonitorbase description. /// [Column("DESCRIPTION")] public String Description { get { return _description; } set { if (_description != value) { _description = value; OnDescriptionChanged(value); } } } protected Double _min; /// /// Gets or sets the techmonitorbase min. /// [Column("MIN")] public Double Min { get { return _min; } set { if (_min != value) { _min = value; OnMinChanged(value); } } } protected Double _max; /// /// Gets or sets the techmonitorbase max. /// [Column("MAX")] public Double Max { get { return _max; } set { if (_max != value) { _max = value; OnMaxChanged(value); } } } protected String _units; /// /// Gets or sets the techmonitorbase units. /// [Column("UNITS")] public String Units { get { return _units; } set { if (_units != value) { _units = value; OnUnitsChanged(value); } } } protected Int32 _pointsperframe; /// /// Gets or sets the techmonitorbase points per frame. /// [Column("POINTS_PER_FRAME")] public Int32 PointsPerFrame { get { return _pointsperframe; } set { if (_pointsperframe != value) { _pointsperframe = value; OnPointsPerFrameChanged(value); } } } protected Boolean _multichannel; /// /// Gets or sets the techmonitorbase multi channel. /// [Column("MULTI_CHANNEL")] public Boolean MultiChannel { get { return _multichannel; } set { if (_multichannel != value) { _multichannel = value; OnMultiChannelChanged(value); } } } protected Int32 _channelcount; /// /// Gets or sets the techmonitorbase channel count. /// [Column("CHANNEL_COUNT")] public Int32 ChannelCount { get { return _channelcount; } set { if (_channelcount != value) { _channelcount = value; OnChannelCountChanged(value); } } } /// /// Called when the Code has changed. /// protected virtual void OnCodeChanged(Int32 code) { CodeChanged?.Invoke(this, code); RaisePropertyChanged(nameof(Code)); } /// /// Called when the Name has changed. /// protected virtual void OnNameChanged(String name) { NameChanged?.Invoke(this, name); RaisePropertyChanged(nameof(Name)); } /// /// Called when the Description has changed. /// protected virtual void OnDescriptionChanged(String description) { DescriptionChanged?.Invoke(this, description); RaisePropertyChanged(nameof(Description)); } /// /// Called when the Min has changed. /// protected virtual void OnMinChanged(Double min) { MinChanged?.Invoke(this, min); RaisePropertyChanged(nameof(Min)); } /// /// Called when the Max has changed. /// protected virtual void OnMaxChanged(Double max) { MaxChanged?.Invoke(this, max); RaisePropertyChanged(nameof(Max)); } /// /// Called when the Units has changed. /// protected virtual void OnUnitsChanged(String units) { UnitsChanged?.Invoke(this, units); RaisePropertyChanged(nameof(Units)); } /// /// Called when the PointsPerFrame has changed. /// protected virtual void OnPointsPerFrameChanged(Int32 pointsperframe) { PointsPerFrameChanged?.Invoke(this, pointsperframe); RaisePropertyChanged(nameof(PointsPerFrame)); } /// /// Called when the MultiChannel has changed. /// protected virtual void OnMultiChannelChanged(Boolean multichannel) { MultiChannelChanged?.Invoke(this, multichannel); RaisePropertyChanged(nameof(MultiChannel)); } /// /// Called when the ChannelCount has changed. /// protected virtual void OnChannelCountChanged(Int32 channelcount) { ChannelCountChanged?.Invoke(this, channelcount); RaisePropertyChanged(nameof(ChannelCount)); } /// /// Initializes a new instance of the class. /// public TechMonitorBase() : base() { } } }