//------------------------------------------------------------------------------
//
// 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("RML_EXTENSION_TEST_WASHING_RESULTS")]
public abstract class RmlExtensionTestWashingResultBase : ObservableEntity
{
public event EventHandler IndexRowChanged;
public event EventHandler ColorChanged;
public event EventHandler> WashingValueChanged;
public event EventHandler RmlExtensionTestResultsChanged;
public event EventHandler WashingTestMaterialsChanged;
protected String _rmlextensiontestresultsguid;
///
/// Gets or sets the rmlextensiontestwashingresultbase rml extension test results guid.
///
[Column("RML_EXTENSION_TEST_RESULTS_GUID")]
[ForeignKey("RmlExtensionTestResults")]
public String RmlExtensionTestResultsGuid
{
get
{
return _rmlextensiontestresultsguid;
}
set
{
if (_rmlextensiontestresultsguid != value)
{
_rmlextensiontestresultsguid = value;
}
}
}
protected String _washingtestmaterialsguid;
///
/// Gets or sets the rmlextensiontestwashingresultbase washing test materials guid.
///
[Column("WASHING_TEST_MATERIALS_GUID")]
[ForeignKey("WashingTestMaterials")]
public String WashingTestMaterialsGuid
{
get
{
return _washingtestmaterialsguid;
}
set
{
if (_washingtestmaterialsguid != value)
{
_washingtestmaterialsguid = value;
}
}
}
protected Int32 _indexrow;
///
/// Gets or sets the rmlextensiontestwashingresultbase index row.
///
[Column("INDEX_ROW")]
public Int32 IndexRow
{
get
{
return _indexrow;
}
set
{
if (_indexrow != value)
{
_indexrow = value;
OnIndexRowChanged(value);
}
}
}
protected Int32 _color;
///
/// Gets or sets the rmlextensiontestwashingresultbase color.
///
[Column("COLOR")]
public Int32 Color
{
get
{
return _color;
}
set
{
if (_color != value)
{
_color = value;
OnColorChanged(value);
}
}
}
protected Nullable _washingvalue;
///
/// Gets or sets the rmlextensiontestwashingresultbase washing value.
///
[Column("WASHING_VALUE")]
public Nullable WashingValue
{
get
{
return _washingvalue;
}
set
{
if (_washingvalue != value)
{
_washingvalue = value;
OnWashingValueChanged(value);
}
}
}
protected RmlExtensionTestResult _rmlextensiontestresults;
///
/// Gets or sets the rmlextensiontestwashingresultbase rml extension test results.
///
[XmlIgnore]
[JsonIgnore]
public virtual RmlExtensionTestResult RmlExtensionTestResults
{
get
{
return _rmlextensiontestresults;
}
set
{
if (_rmlextensiontestresults != value)
{
_rmlextensiontestresults = value;
if (RmlExtensionTestResults != null)
{
RmlExtensionTestResultsGuid = RmlExtensionTestResults.Guid;
}
OnRmlExtensionTestResultsChanged(value);
}
}
}
protected WashingTestMaterial _washingtestmaterials;
///
/// Gets or sets the rmlextensiontestwashingresultbase washing test materials.
///
[XmlIgnore]
[JsonIgnore]
public virtual WashingTestMaterial WashingTestMaterials
{
get
{
return _washingtestmaterials;
}
set
{
if (_washingtestmaterials != value)
{
_washingtestmaterials = value;
if (WashingTestMaterials != null)
{
WashingTestMaterialsGuid = WashingTestMaterials.Guid;
}
OnWashingTestMaterialsChanged(value);
}
}
}
///
/// Called when the IndexRow has changed.
///
protected virtual void OnIndexRowChanged(Int32 indexrow)
{
IndexRowChanged?.Invoke(this, indexrow);
RaisePropertyChanged(nameof(IndexRow));
}
///
/// Called when the Color has changed.
///
protected virtual void OnColorChanged(Int32 color)
{
ColorChanged?.Invoke(this, color);
RaisePropertyChanged(nameof(Color));
}
///
/// Called when the WashingValue has changed.
///
protected virtual void OnWashingValueChanged(Nullable washingvalue)
{
WashingValueChanged?.Invoke(this, washingvalue);
RaisePropertyChanged(nameof(WashingValue));
}
///
/// Called when the RmlExtensionTestResults has changed.
///
protected virtual void OnRmlExtensionTestResultsChanged(RmlExtensionTestResult rmlextensiontestresults)
{
RmlExtensionTestResultsChanged?.Invoke(this, rmlextensiontestresults);
RaisePropertyChanged(nameof(RmlExtensionTestResults));
}
///
/// Called when the WashingTestMaterials has changed.
///
protected virtual void OnWashingTestMaterialsChanged(WashingTestMaterial washingtestmaterials)
{
WashingTestMaterialsChanged?.Invoke(this, washingtestmaterials);
RaisePropertyChanged(nameof(WashingTestMaterials));
}
///
/// Initializes a new instance of the class.
///
public RmlExtensionTestWashingResultBase() : base()
{
}
}
}