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; namespace Tango.BL.Entities { [Table("MACHINES")] public partial class Machine : ObservableEntity { protected String _serialnumber; /// /// Gets or sets the machine serial number. /// [Column("SERIAL_NUMBER")] public String SerialNumber { get { return _serialnumber; } set { _serialnumber = value; RaisePropertyChanged(nameof(SerialNumber)); } } protected String _name; /// /// Gets or sets the machine name. /// [Column("NAME")] public String Name { get { return _name; } set { _name = value; RaisePropertyChanged(nameof(Name)); } } protected DateTime _productiondate; /// /// Gets or sets the machine production date. /// [Column("PRODUCTION_DATE")] public DateTime ProductionDate { get { return _productiondate; } set { _productiondate = value; RaisePropertyChanged(nameof(ProductionDate)); } } protected String _organizationguid; /// /// Gets or sets the machine organization guid. /// [Column("ORGANIZATION_GUID")] [ForeignKey("Organization")] public String OrganizationGuid { get { return _organizationguid; } set { _organizationguid = value; RaisePropertyChanged(nameof(OrganizationGuid)); } } protected String _machineversionguid; /// /// Gets or sets the machine machine version guid. /// [Column("MACHINE_VERSION_GUID")] [ForeignKey("MachineVersion")] public String MachineVersionGuid { get { return _machineversionguid; } set { _machineversionguid = value; RaisePropertyChanged(nameof(MachineVersionGuid)); } } protected String _configurationguid; /// /// Gets or sets the machine configuration guid. /// [Column("CONFIGURATION_GUID")] [ForeignKey("Configuration")] public String ConfigurationGuid { get { return _configurationguid; } set { _configurationguid = value; RaisePropertyChanged(nameof(ConfigurationGuid)); } } protected String _externalbridgepassword; /// /// Gets or sets the machine external bridge password. /// [Column("EXTERNAL_BRIDGE_PASSWORD")] public String ExternalBridgePassword { get { return _externalbridgepassword; } set { _externalbridgepassword = value; RaisePropertyChanged(nameof(ExternalBridgePassword)); } } protected Boolean _synched; /// /// Gets or sets the machine synched. /// [Column("SYNCHED")] public Boolean Synched { get { return _synched; } set { _synched = value; RaisePropertyChanged(nameof(Synched)); } } protected ObservableCollection _cats; /// /// Gets or sets the machine cats. /// public virtual ObservableCollection Cats { get { return _cats; } set { _cats = value; RaisePropertyChanged(nameof(Cats)); } } protected Configuration _configuration; /// /// Gets or sets the machine configuration. /// [XmlIgnore] [JsonIgnore] public virtual Configuration Configuration { get { return _configuration; } set { _configuration = value; RaisePropertyChanged(nameof(Configuration)); } } protected ObservableCollection _jobs; /// /// Gets or sets the machine jobs. /// public virtual ObservableCollection Jobs { get { return _jobs; } set { _jobs = value; RaisePropertyChanged(nameof(Jobs)); } } protected MachineVersion _machineversion; /// /// Gets or sets the machine machine versions. /// [XmlIgnore] [JsonIgnore] public virtual MachineVersion MachineVersion { get { return _machineversion; } set { _machineversion = value; RaisePropertyChanged(nameof(MachineVersion)); } } protected ObservableCollection _machinesconfigurations; /// /// Gets or sets the machine machines configurations. /// public virtual ObservableCollection MachinesConfigurations { get { return _machinesconfigurations; } set { _machinesconfigurations = value; RaisePropertyChanged(nameof(MachinesConfigurations)); } } protected ObservableCollection _machinesevents; /// /// Gets or sets the machine machines events. /// public virtual ObservableCollection MachinesEvents { get { return _machinesevents; } set { _machinesevents = value; RaisePropertyChanged(nameof(MachinesEvents)); } } protected Organization _organization; /// /// Gets or sets the machine organization. /// [XmlIgnore] [JsonIgnore] public virtual Organization Organization { get { return _organization; } set { _organization = value; RaisePropertyChanged(nameof(Organization)); } } /// /// Initializes a new instance of the class. /// public Machine() : base() { Cats = new ObservableCollection(); Jobs = new ObservableCollection(); MachinesConfigurations = new ObservableCollection(); MachinesEvents = new ObservableCollection(); } } }