//------------------------------------------------------------------------------ // // 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; namespace Tango.BL.Entities { [Table("RMLS")] public abstract class RmlBase : ObservableEntity { public event EventHandler NameChanged; public event EventHandler ManufacturerChanged; public event EventHandler CodeChanged; public event EventHandler WhitePointLChanged; public event EventHandler WhitePointAChanged; public event EventHandler WhitePointBChanged; public event EventHandler FiberSizeChanged; public event EventHandler NumberOfFibersChanged; public event EventHandler PliesPerFiberChanged; public event EventHandler PliesPerThreadChanged; public event EventHandler TwistedChanged; public event EventHandler AirEntanglementChanged; public event EventHandler LubricantChanged; public event EventHandler TensileStrengthChanged; public event EventHandler ElongationAtBreakPercentageChanged; public event EventHandler EstimatedThreadDiameterChanged; public event EventHandler RankChanged; public event EventHandler ThumbnailChanged; public event EventHandler ColorConversionVersionChanged; public event EventHandler> CatsChanged; public event EventHandler CctChanged; public event EventHandler> ColorCatalogsItemsRecipesChanged; public event EventHandler FiberShapeChanged; public event EventHandler FiberSynthChanged; public event EventHandler> JobsChanged; public event EventHandler LinearMassDensityUnitChanged; public event EventHandler> LiquidTypesRmlsChanged; public event EventHandler> MachinesChanged; public event EventHandler MediaConditionChanged; public event EventHandler MediaMaterialChanged; public event EventHandler MediaPurposeChanged; public event EventHandler> ProcessParametersTablesGroupsChanged; protected String _name; /// /// Gets or sets the rmlbase name. /// [Column("NAME")] public String Name { get { return _name; } set { if (_name != value) { _name = value; OnNameChanged(value); } } } protected String _manufacturer; /// /// Gets or sets the rmlbase manufacturer. /// [Column("MANUFACTURER")] public String Manufacturer { get { return _manufacturer; } set { if (_manufacturer != value) { _manufacturer = value; OnManufacturerChanged(value); } } } protected Int32 _code; /// /// Gets or sets the rmlbase code. /// [Column("CODE")] public Int32 Code { get { return _code; } set { if (_code != value) { _code = value; OnCodeChanged(value); } } } protected Double _whitepointl; /// /// Gets or sets the rmlbase white point l. /// [Column("WHITE_POINT_L")] public Double WhitePointL { get { return _whitepointl; } set { if (_whitepointl != value) { _whitepointl = value; OnWhitePointLChanged(value); } } } protected Double _whitepointa; /// /// Gets or sets the rmlbase white point a. /// [Column("WHITE_POINT_A")] public Double WhitePointA { get { return _whitepointa; } set { if (_whitepointa != value) { _whitepointa = value; OnWhitePointAChanged(value); } } } protected Double _whitepointb; /// /// Gets or sets the rmlbase white point b. /// [Column("WHITE_POINT_B")] public Double WhitePointB { get { return _whitepointb; } set { if (_whitepointb != value) { _whitepointb = value; OnWhitePointBChanged(value); } } } protected String _mediamaterialguid; /// /// Gets or sets the rmlbase media material guid. /// [Column("MEDIA_MATERIAL_GUID")] [ForeignKey("MediaMaterial")] public String MediaMaterialGuid { get { return _mediamaterialguid; } set { if (_mediamaterialguid != value) { _mediamaterialguid = value; } } } protected String _mediapurposeguid; /// /// Gets or sets the rmlbase media purpose guid. /// [Column("MEDIA_PURPOSE_GUID")] [ForeignKey("MediaPurpose")] public String MediaPurposeGuid { get { return _mediapurposeguid; } set { if (_mediapurposeguid != value) { _mediapurposeguid = value; } } } protected String _mediaconditionguid; /// /// Gets or sets the rmlbase media condition guid. /// [Column("MEDIA_CONDITION_GUID")] [ForeignKey("MediaCondition")] public String MediaConditionGuid { get { return _mediaconditionguid; } set { if (_mediaconditionguid != value) { _mediaconditionguid = value; } } } protected String _linearmassdensityunitguid; /// /// Gets or sets the rmlbase linear mass density unit guid. /// [Column("LINEAR_MASS_DENSITY_UNIT_GUID")] [ForeignKey("LinearMassDensityUnit")] public String LinearMassDensityUnitGuid { get { return _linearmassdensityunitguid; } set { if (_linearmassdensityunitguid != value) { _linearmassdensityunitguid = value; } } } protected String _fibershapeguid; /// /// Gets or sets the rmlbase fiber shape guid. /// [Column("FIBER_SHAPE_GUID")] [ForeignKey("FiberShape")] public String FiberShapeGuid { get { return _fibershapeguid; } set { if (_fibershapeguid != value) { _fibershapeguid = value; } } } protected String _fibersynthguid; /// /// Gets or sets the rmlbase fiber synth guid. /// [Column("FIBER_SYNTH_GUID")] [ForeignKey("FiberSynth")] public String FiberSynthGuid { get { return _fibersynthguid; } set { if (_fibersynthguid != value) { _fibersynthguid = value; } } } protected Double _fibersize; /// /// Gets or sets the rmlbase fiber size. /// [Column("FIBER_SIZE")] public Double FiberSize { get { return _fibersize; } set { if (_fibersize != value) { _fibersize = value; OnFiberSizeChanged(value); } } } protected Int32 _numberoffibers; /// /// Gets or sets the rmlbase number of fibers. /// [Column("NUMBER_OF_FIBERS")] public Int32 NumberOfFibers { get { return _numberoffibers; } set { if (_numberoffibers != value) { _numberoffibers = value; OnNumberOfFibersChanged(value); } } } protected Int32 _pliesperfiber; /// /// Gets or sets the rmlbase plies per fiber. /// [Column("PLIES_PER_FIBER")] public Int32 PliesPerFiber { get { return _pliesperfiber; } set { if (_pliesperfiber != value) { _pliesperfiber = value; OnPliesPerFiberChanged(value); } } } protected Int32 _pliesperthread; /// /// Gets or sets the rmlbase plies per thread. /// [Column("PLIES_PER_THREAD")] public Int32 PliesPerThread { get { return _pliesperthread; } set { if (_pliesperthread != value) { _pliesperthread = value; OnPliesPerThreadChanged(value); } } } protected Boolean _twisted; /// /// Gets or sets the rmlbase twisted. /// [Column("TWISTED")] public Boolean Twisted { get { return _twisted; } set { if (_twisted != value) { _twisted = value; OnTwistedChanged(value); } } } protected Boolean _airentanglement; /// /// Gets or sets the rmlbase air entanglement. /// [Column("AIR_ENTANGLEMENT")] public Boolean AirEntanglement { get { return _airentanglement; } set { if (_airentanglement != value) { _airentanglement = value; OnAirEntanglementChanged(value); } } } protected Boolean _lubricant; /// /// Gets or sets the rmlbase lubricant. /// [Column("LUBRICANT")] public Boolean Lubricant { get { return _lubricant; } set { if (_lubricant != value) { _lubricant = value; OnLubricantChanged(value); } } } protected Double _tensilestrength; /// /// Gets or sets the rmlbase tensile strength. /// [Column("TENSILE_STRENGTH")] public Double TensileStrength { get { return _tensilestrength; } set { if (_tensilestrength != value) { _tensilestrength = value; OnTensileStrengthChanged(value); } } } protected Double _elongationatbreakpercentage; /// /// Gets or sets the rmlbase elongation at break percentage. /// [Column("ELONGATION_AT_BREAK_PERCENTAGE")] public Double ElongationAtBreakPercentage { get { return _elongationatbreakpercentage; } set { if (_elongationatbreakpercentage != value) { _elongationatbreakpercentage = value; OnElongationAtBreakPercentageChanged(value); } } } protected Double _estimatedthreaddiameter; /// /// Gets or sets the rmlbase estimated thread diameter. /// [Column("ESTIMATED_THREAD_DIAMETER")] public Double EstimatedThreadDiameter { get { return _estimatedthreaddiameter; } set { if (_estimatedthreaddiameter != value) { _estimatedthreaddiameter = value; OnEstimatedThreadDiameterChanged(value); } } } protected Int32 _rank; /// /// Gets or sets the rmlbase rank. /// [Column("RANK")] public Int32 Rank { get { return _rank; } set { if (_rank != value) { _rank = value; OnRankChanged(value); } } } protected Byte[] _thumbnail; /// /// Gets or sets the rmlbase thumbnail. /// [Column("THUMBNAIL")] public Byte[] Thumbnail { get { return _thumbnail; } set { if (_thumbnail != value) { _thumbnail = value; OnThumbnailChanged(value); } } } protected String _cctguid; /// /// Gets or sets the rmlbase cct guid. /// [Column("CCT_GUID")] [ForeignKey("Cct")] public String CctGuid { get { return _cctguid; } set { if (_cctguid != value) { _cctguid = value; } } } protected Int32 _colorconversionversion; /// /// Gets or sets the rmlbase color conversion version. /// [Column("COLOR_CONVERSION_VERSION")] public Int32 ColorConversionVersion { get { return _colorconversionversion; } set { if (_colorconversionversion != value) { _colorconversionversion = value; OnColorConversionVersionChanged(value); } } } protected SynchronizedObservableCollection _cats; /// /// Gets or sets the rmlbase cats. /// public virtual SynchronizedObservableCollection Cats { get { return _cats; } set { if (_cats != value) { _cats = value; OnCatsChanged(value); } } } protected Cct _cct; /// /// Gets or sets the rmlbase cct. /// [XmlIgnore] [JsonIgnore] public virtual Cct Cct { get { return _cct; } set { if (_cct != value) { _cct = value; if (Cct != null) { CctGuid = Cct.Guid; } OnCctChanged(value); } } } protected SynchronizedObservableCollection _colorcatalogsitemsrecipes; /// /// Gets or sets the rmlbase color catalogs items recipes. /// public virtual SynchronizedObservableCollection ColorCatalogsItemsRecipes { get { return _colorcatalogsitemsrecipes; } set { if (_colorcatalogsitemsrecipes != value) { _colorcatalogsitemsrecipes = value; OnColorCatalogsItemsRecipesChanged(value); } } } protected FiberShape _fibershape; /// /// Gets or sets the rmlbase fiber shapes. /// [XmlIgnore] [JsonIgnore] public virtual FiberShape FiberShape { get { return _fibershape; } set { if (_fibershape != value) { _fibershape = value; if (FiberShape != null) { FiberShapeGuid = FiberShape.Guid; } OnFiberShapeChanged(value); } } } protected FiberSynth _fibersynth; /// /// Gets or sets the rmlbase fiber synths. /// [XmlIgnore] [JsonIgnore] public virtual FiberSynth FiberSynth { get { return _fibersynth; } set { if (_fibersynth != value) { _fibersynth = value; if (FiberSynth != null) { FiberSynthGuid = FiberSynth.Guid; } OnFiberSynthChanged(value); } } } protected SynchronizedObservableCollection _jobs; /// /// Gets or sets the rmlbase jobs. /// public virtual SynchronizedObservableCollection Jobs { get { return _jobs; } set { if (_jobs != value) { _jobs = value; OnJobsChanged(value); } } } protected LinearMassDensityUnit _linearmassdensityunit; /// /// Gets or sets the rmlbase linear mass density units. /// [XmlIgnore] [JsonIgnore] public virtual LinearMassDensityUnit LinearMassDensityUnit { get { return _linearmassdensityunit; } set { if (_linearmassdensityunit != value) { _linearmassdensityunit = value; if (LinearMassDensityUnit != null) { LinearMassDensityUnitGuid = LinearMassDensityUnit.Guid; } OnLinearMassDensityUnitChanged(value); } } } protected SynchronizedObservableCollection _liquidtypesrmls; /// /// Gets or sets the rmlbase liquid types rmls. /// public virtual SynchronizedObservableCollection LiquidTypesRmls { get { return _liquidtypesrmls; } set { if (_liquidtypesrmls != value) { _liquidtypesrmls = value; OnLiquidTypesRmlsChanged(value); } } } protected SynchronizedObservableCollection _machines; /// /// Gets or sets the rmlbase machines. /// public virtual SynchronizedObservableCollection Machines { get { return _machines; } set { if (_machines != value) { _machines = value; OnMachinesChanged(value); } } } protected MediaCondition _mediacondition; /// /// Gets or sets the rmlbase media conditions. /// [XmlIgnore] [JsonIgnore] public virtual MediaCondition MediaCondition { get { return _mediacondition; } set { if (_mediacondition != value) { _mediacondition = value; if (MediaCondition != null) { MediaConditionGuid = MediaCondition.Guid; } OnMediaConditionChanged(value); } } } protected MediaMaterial _mediamaterial; /// /// Gets or sets the rmlbase media materials. /// [XmlIgnore] [JsonIgnore] public virtual MediaMaterial MediaMaterial { get { return _mediamaterial; } set { if (_mediamaterial != value) { _mediamaterial = value; if (MediaMaterial != null) { MediaMaterialGuid = MediaMaterial.Guid; } OnMediaMaterialChanged(value); } } } protected MediaPurpos _mediapurpose; /// /// Gets or sets the rmlbase media purposes. /// [XmlIgnore] [JsonIgnore] public virtual MediaPurpos MediaPurpose { get { return _mediapurpose; } set { if (_mediapurpose != value) { _mediapurpose = value; if (MediaPurpose != null) { MediaPurposeGuid = MediaPurpose.Guid; } OnMediaPurposeChanged(value); } } } protected SynchronizedObservableCollection _processparameterstablesgroups; /// /// Gets or sets the rmlbase process parameters tables groups. /// public virtual SynchronizedObservableCollection ProcessParametersTablesGroups { get { return _processparameterstablesgroups; } set { if (_processparameterstablesgroups != value) { _processparameterstablesgroups = value; OnProcessParametersTablesGroupsChanged(value); } } } /// /// Called when the Name has changed. /// protected virtual void OnNameChanged(String name) { NameChanged?.Invoke(this, name); RaisePropertyChanged(nameof(Name)); } /// /// Called when the Manufacturer has changed. /// protected virtual void OnManufacturerChanged(String manufacturer) { ManufacturerChanged?.Invoke(this, manufacturer); RaisePropertyChanged(nameof(Manufacturer)); } /// /// Called when the Code has changed. /// protected virtual void OnCodeChanged(Int32 code) { CodeChanged?.Invoke(this, code); RaisePropertyChanged(nameof(Code)); } /// /// Called when the WhitePointL has changed. /// protected virtual void OnWhitePointLChanged(Double whitepointl) { WhitePointLChanged?.Invoke(this, whitepointl); RaisePropertyChanged(nameof(WhitePointL)); } /// /// Called when the WhitePointA has changed. /// protected virtual void OnWhitePointAChanged(Double whitepointa) { WhitePointAChanged?.Invoke(this, whitepointa); RaisePropertyChanged(nameof(WhitePointA)); } /// /// Called when the WhitePointB has changed. /// protected virtual void OnWhitePointBChanged(Double whitepointb) { WhitePointBChanged?.Invoke(this, whitepointb); RaisePropertyChanged(nameof(WhitePointB)); } /// /// Called when the FiberSize has changed. /// protected virtual void OnFiberSizeChanged(Double fibersize) { FiberSizeChanged?.Invoke(this, fibersize); RaisePropertyChanged(nameof(FiberSize)); } /// /// Called when the NumberOfFibers has changed. /// protected virtual void OnNumberOfFibersChanged(Int32 numberoffibers) { NumberOfFibersChanged?.Invoke(this, numberoffibers); RaisePropertyChanged(nameof(NumberOfFibers)); } /// /// Called when the PliesPerFiber has changed. /// protected virtual void OnPliesPerFiberChanged(Int32 pliesperfiber) { PliesPerFiberChanged?.Invoke(this, pliesperfiber); RaisePropertyChanged(nameof(PliesPerFiber)); } /// /// Called when the PliesPerThread has changed. /// protected virtual void OnPliesPerThreadChanged(Int32 pliesperthread) { PliesPerThreadChanged?.Invoke(this, pliesperthread); RaisePropertyChanged(nameof(PliesPerThread)); } /// /// Called when the Twisted has changed. /// protected virtual void OnTwistedChanged(Boolean twisted) { TwistedChanged?.Invoke(this, twisted); RaisePropertyChanged(nameof(Twisted)); } /// /// Called when the AirEntanglement has changed. /// protected virtual void OnAirEntanglementChanged(Boolean airentanglement) { AirEntanglementChanged?.Invoke(this, airentanglement); RaisePropertyChanged(nameof(AirEntanglement)); } /// /// Called when the Lubricant has changed. /// protected virtual void OnLubricantChanged(Boolean lubricant) { LubricantChanged?.Invoke(this, lubricant); RaisePropertyChanged(nameof(Lubricant)); } /// /// Called when the TensileStrength has changed. /// protected virtual void OnTensileStrengthChanged(Double tensilestrength) { TensileStrengthChanged?.Invoke(this, tensilestrength); RaisePropertyChanged(nameof(TensileStrength)); } /// /// Called when the ElongationAtBreakPercentage has changed. /// protected virtual void OnElongationAtBreakPercentageChanged(Double elongationatbreakpercentage) { ElongationAtBreakPercentageChanged?.Invoke(this, elongationatbreakpercentage); RaisePropertyChanged(nameof(ElongationAtBreakPercentage)); } /// /// Called when the EstimatedThreadDiameter has changed. /// protected virtual void OnEstimatedThreadDiameterChanged(Double estimatedthreaddiameter) { EstimatedThreadDiameterChanged?.Invoke(this, estimatedthreaddiameter); RaisePropertyChanged(nameof(EstimatedThreadDiameter)); } /// /// Called when the Rank has changed. /// protected virtual void OnRankChanged(Int32 rank) { RankChanged?.Invoke(this, rank); RaisePropertyChanged(nameof(Rank)); } /// /// Called when the Thumbnail has changed. /// protected virtual void OnThumbnailChanged(Byte[] thumbnail) { ThumbnailChanged?.Invoke(this, thumbnail); RaisePropertyChanged(nameof(Thumbnail)); } /// /// Called when the ColorConversionVersion has changed. /// protected virtual void OnColorConversionVersionChanged(Int32 colorconversionversion) { ColorConversionVersionChanged?.Invoke(this, colorconversionversion); RaisePropertyChanged(nameof(ColorConversionVersion)); } /// /// Called when the Cats has changed. /// protected virtual void OnCatsChanged(SynchronizedObservableCollection cats) { CatsChanged?.Invoke(this, cats); RaisePropertyChanged(nameof(Cats)); } /// /// Called when the Cct has changed. /// protected virtual void OnCctChanged(Cct cct) { CctChanged?.Invoke(this, cct); RaisePropertyChanged(nameof(Cct)); } /// /// Called when the ColorCatalogsItemsRecipes has changed. /// protected virtual void OnColorCatalogsItemsRecipesChanged(SynchronizedObservableCollection colorcatalogsitemsrecipes) { ColorCatalogsItemsRecipesChanged?.Invoke(this, colorcatalogsitemsrecipes); RaisePropertyChanged(nameof(ColorCatalogsItemsRecipes)); } /// /// Called when the FiberShape has changed. /// protected virtual void OnFiberShapeChanged(FiberShape fibershape) { FiberShapeChanged?.Invoke(this, fibershape); RaisePropertyChanged(nameof(FiberShape)); } /// /// Called when the FiberSynth has changed. /// protected virtual void OnFiberSynthChanged(FiberSynth fibersynth) { FiberSynthChanged?.Invoke(this, fibersynth); RaisePropertyChanged(nameof(FiberSynth)); } /// /// Called when the Jobs has changed. /// protected virtual void OnJobsChanged(SynchronizedObservableCollection jobs) { JobsChanged?.Invoke(this, jobs); RaisePropertyChanged(nameof(Jobs)); } /// /// Called when the LinearMassDensityUnit has changed. /// protected virtual void OnLinearMassDensityUnitChanged(LinearMassDensityUnit linearmassdensityunit) { LinearMassDensityUnitChanged?.Invoke(this, linearmassdensityunit); RaisePropertyChanged(nameof(LinearMassDensityUnit)); } /// /// Called when the LiquidTypesRmls has changed. /// protected virtual void OnLiquidTypesRmlsChanged(SynchronizedObservableCollection liquidtypesrmls) { LiquidTypesRmlsChanged?.Invoke(this, liquidtypesrmls); RaisePropertyChanged(nameof(LiquidTypesRmls)); } /// /// Called when the Machines has changed. /// protected virtual void OnMachinesChanged(SynchronizedObservableCollection machines) { MachinesChanged?.Invoke(this, machines); RaisePropertyChanged(nameof(Machines)); } /// /// Called when the MediaCondition has changed. /// protected virtual void OnMediaConditionChanged(MediaCondition mediacondition) { MediaConditionChanged?.Invoke(this, mediacondition); RaisePropertyChanged(nameof(MediaCondition)); } /// /// Called when the MediaMaterial has changed. /// protected virtual void OnMediaMaterialChanged(MediaMaterial mediamaterial) { MediaMaterialChanged?.Invoke(this, mediamaterial); RaisePropertyChanged(nameof(MediaMaterial)); } /// /// Called when the MediaPurpose has changed. /// protected virtual void OnMediaPurposeChanged(MediaPurpos mediapurpose) { MediaPurposeChanged?.Invoke(this, mediapurpose); RaisePropertyChanged(nameof(MediaPurpose)); } /// /// Called when the ProcessParametersTablesGroups has changed. /// protected virtual void OnProcessParametersTablesGroupsChanged(SynchronizedObservableCollection processparameterstablesgroups) { ProcessParametersTablesGroupsChanged?.Invoke(this, processparameterstablesgroups); RaisePropertyChanged(nameof(ProcessParametersTablesGroups)); } /// /// Initializes a new instance of the class. /// public RmlBase() : base() { Cats = new SynchronizedObservableCollection(); ColorCatalogsItemsRecipes = new SynchronizedObservableCollection(); Jobs = new SynchronizedObservableCollection(); LiquidTypesRmls = new SynchronizedObservableCollection(); Machines = new SynchronizedObservableCollection(); ProcessParametersTablesGroups = new SynchronizedObservableCollection(); } } }