//------------------------------------------------------------------------------ // // 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("EMBEDDED_FIRMWARE_VERSIONS")] public abstract class EmbeddedFirmwareVersionBase : ObservableEntity { public event EventHandler VersionChanged; public event EventHandler NameChanged; public event EventHandler> ConfigurationsChanged; protected Double _version; /// /// Gets or sets the embeddedfirmwareversionbase version. /// [Column("VERSION")] public Double Version { get { return _version; } set { if (_version != value) { _version = value; OnVersionChanged(value); } } } protected String _name; /// /// Gets or sets the embeddedfirmwareversionbase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected SynchronizedObservableCollection _configurations; /// /// Gets or sets the embeddedfirmwareversionbase configurations. /// public virtual SynchronizedObservableCollection Configurations { get { return _configurations; } set { if (_configurations != value) { _configurations = value; OnConfigurationsChanged(value); } } } /// /// Called when the Version has changed. /// protected virtual void OnVersionChanged(Double version) { VersionChanged?.Invoke(this, version); RaisePropertyChanged(nameof(Version)); } /// /// Called when the Name has changed. /// protected virtual void OnNameChanged(String name) { NameChanged?.Invoke(this, name); RaisePropertyChanged(nameof(Name)); } /// /// Called when the Configurations has changed. /// protected virtual void OnConfigurationsChanged(SynchronizedObservableCollection configurations) { ConfigurationsChanged?.Invoke(this, configurations); RaisePropertyChanged(nameof(Configurations)); } /// /// Initializes a new instance of the class. /// public EmbeddedFirmwareVersionBase() : base() { Configurations = new SynchronizedObservableCollection(); } } }