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("MACHINE_VERSIONS")] public partial class MachineVersion : ObservableEntity { protected Double _version; /// /// Gets or sets the machineversion version. /// [Column("VERSION")] public Double Version { get { return _version; } set { _version = value; RaisePropertyChanged(nameof(Version)); } } protected String _name; /// /// Gets or sets the machineversion name. /// [Column("NAME")] public String Name { get { return _name; } set { _name = value; RaisePropertyChanged(nameof(Name)); } } protected String _defaultconfigurationguid; /// /// Gets or sets the machineversion default configuration guid. /// [Column("DEFAULT_CONFIGURATION_GUID")] [ForeignKey("DefaultConfiguration")] public String DefaultConfigurationGuid { get { return _defaultconfigurationguid; } set { _defaultconfigurationguid = value; RaisePropertyChanged(nameof(DefaultConfigurationGuid)); } } protected Configuration _defaultconfiguration; /// /// Gets or sets the machineversion configuration. /// [XmlIgnore] [JsonIgnore] public virtual Configuration DefaultConfiguration { get { return _defaultconfiguration; } set { _defaultconfiguration = value; RaisePropertyChanged(nameof(DefaultConfiguration)); } } protected ObservableCollection _machines; /// /// Gets or sets the machineversion machines. /// public virtual ObservableCollection Machines { get { return _machines; } set { _machines = value; RaisePropertyChanged(nameof(Machines)); } } /// /// Initializes a new instance of the class. /// public MachineVersion() : base() { Machines = new ObservableCollection(); } } }