//------------------------------------------------------------------------------ // // 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("YARN_WHITE_SHADES")] public abstract class YarnWhiteShadeBase : ObservableEntity { public event EventHandler NameChanged; public event EventHandler> RmlsExtensionsChanged; protected String _name; /// /// Gets or sets the yarnwhiteshadebase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected SynchronizedObservableCollection _rmlsextensions; /// /// Gets or sets the yarnwhiteshadebase rmls extensions. /// public virtual SynchronizedObservableCollection RmlsExtensions { get { return _rmlsextensions; } set { if (_rmlsextensions != value) { _rmlsextensions = value; OnRmlsExtensionsChanged(value); } } } /// /// Called when the Name has changed. /// protected virtual void OnNameChanged(String name) { NameChanged?.Invoke(this, name); RaisePropertyChanged(nameof(Name)); } /// /// Called when the RmlsExtensions has changed. /// protected virtual void OnRmlsExtensionsChanged(SynchronizedObservableCollection rmlsextensions) { RmlsExtensionsChanged?.Invoke(this, rmlsextensions); RaisePropertyChanged(nameof(RmlsExtensions)); } /// /// Initializes a new instance of the class. /// public YarnWhiteShadeBase() : base() { RmlsExtensions = new SynchronizedObservableCollection(); } } }