//------------------------------------------------------------------------------ // // 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("GBDS")] public abstract class GbdBase : ObservableEntity { public event EventHandler NameChanged; public event EventHandler DescriptionChanged; public event EventHandler FileNameChanged; public event EventHandler DataChanged; public event EventHandler> RmlsChanged; protected String _name; /// /// Gets or sets the gbdbase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected String _description; /// /// Gets or sets the gbdbase description. /// [Column("DESCRIPTION")] public String Description { get { return _description; } set { if (_description != value) { _description = value; OnDescriptionChanged(value); } } } protected String _filename; /// /// Gets or sets the gbdbase file name. /// [Column("FILE_NAME")] public String FileName { get { return _filename; } set { if (_filename != value) { _filename = value; OnFileNameChanged(value); } } } protected Byte[] _data; /// /// Gets or sets the gbdbase data. /// [Column("DATA")] public Byte[] Data { get { return _data; } set { if (_data != value) { _data = value; OnDataChanged(value); } } } protected SynchronizedObservableCollection _rmls; /// /// Gets or sets the gbdbase rmls. /// public virtual SynchronizedObservableCollection Rmls { get { return _rmls; } set { if (_rmls != value) { _rmls = value; OnRmlsChanged(value); } } } /// /// 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 FileName has changed. /// protected virtual void OnFileNameChanged(String filename) { FileNameChanged?.Invoke(this, filename); RaisePropertyChanged(nameof(FileName)); } /// /// Called when the Data has changed. /// protected virtual void OnDataChanged(Byte[] data) { DataChanged?.Invoke(this, data); RaisePropertyChanged(nameof(Data)); } /// /// Called when the Rmls has changed. /// protected virtual void OnRmlsChanged(SynchronizedObservableCollection rmls) { RmlsChanged?.Invoke(this, rmls); RaisePropertyChanged(nameof(Rmls)); } /// /// Initializes a new instance of the class. /// public GbdBase() : base() { Rmls = new SynchronizedObservableCollection(); } } }