//------------------------------------------------------------------------------ // // 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("GLOBAL_DATA_STORE_ITEMS")] public abstract class GlobalDataStoreItemBase : ObservableEntity { public event EventHandler CollectionNameChanged; public event EventHandler KeyChanged; public event EventHandler DataTypeChanged; public event EventHandler ValueChanged; protected String _collectionname; /// /// Gets or sets the globaldatastoreitembase collection name. /// [Column("COLLECTION_NAME")] public String CollectionName { get { return _collectionname; } set { if (_collectionname != value) { _collectionname = value; OnCollectionNameChanged(value); } } } protected String _key; /// /// Gets or sets the globaldatastoreitembase key. /// [Column("KEY")] public String Key { get { return _key; } set { if (_key != value) { _key = value; OnKeyChanged(value); } } } protected Int32 _datatype; /// /// Gets or sets the globaldatastoreitembase data type. /// [Column("DATA_TYPE")] public Int32 DataType { get { return _datatype; } set { if (_datatype != value) { _datatype = value; OnDataTypeChanged(value); } } } protected Byte[] _value; /// /// Gets or sets the globaldatastoreitembase value. /// [Column("VALUE")] public Byte[] Value { get { return _value; } set { if (_value != value) { _value = value; OnValueChanged(value); } } } /// /// Called when the CollectionName has changed. /// protected virtual void OnCollectionNameChanged(String collectionname) { CollectionNameChanged?.Invoke(this, collectionname); RaisePropertyChanged(nameof(CollectionName)); } /// /// Called when the Key has changed. /// protected virtual void OnKeyChanged(String key) { KeyChanged?.Invoke(this, key); RaisePropertyChanged(nameof(Key)); } /// /// Called when the DataType has changed. /// protected virtual void OnDataTypeChanged(Int32 datatype) { DataTypeChanged?.Invoke(this, datatype); RaisePropertyChanged(nameof(DataType)); } /// /// Called when the Value has changed. /// protected virtual void OnValueChanged(Byte[] value) { ValueChanged?.Invoke(this, value); RaisePropertyChanged(nameof(Value)); } /// /// Initializes a new instance of the class. /// public GlobalDataStoreItemBase() : base() { } } }