diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/SitesCatalogBase.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/SitesCatalogBase.cs | 175 |
1 files changed, 0 insertions, 175 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/SitesCatalogBase.cs b/Software/Visual_Studio/Tango.BL/Entities/SitesCatalogBase.cs deleted file mode 100644 index 4f4665203..000000000 --- a/Software/Visual_Studio/Tango.BL/Entities/SitesCatalogBase.cs +++ /dev/null @@ -1,175 +0,0 @@ -//------------------------------------------------------------------------------ -// <auto-generated> -// 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! -// </auto-generated> -//------------------------------------------------------------------------------ - -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("SITES_CATALOGS")] - public abstract class SitesCatalogBase : ObservableEntity<SitesCatalog> - { - - public event EventHandler<ColorCatalog> ColorCatalogChanged; - - public event EventHandler<Site> SiteChanged; - - protected String _siteguid; - - /// <summary> - /// Gets or sets the sitescatalogbase site guid. - /// </summary> - - [Column("SITE_GUID")] - [ForeignKey("Site")] - - public String SiteGuid - { - get - { - return _siteguid; - } - - set - { - if (_siteguid != value) - { - _siteguid = value; - - } - } - } - - protected String _colorcatalogguid; - - /// <summary> - /// Gets or sets the sitescatalogbase color catalog guid. - /// </summary> - - [Column("COLOR_CATALOG_GUID")] - [ForeignKey("ColorCatalog")] - - public String ColorCatalogGuid - { - get - { - return _colorcatalogguid; - } - - set - { - if (_colorcatalogguid != value) - { - _colorcatalogguid = value; - - } - } - } - - protected ColorCatalog _colorcatalog; - - /// <summary> - /// Gets or sets the sitescatalogbase color catalogs. - /// </summary> - - [XmlIgnore] - [JsonIgnore] - public virtual ColorCatalog ColorCatalog - { - get - { - return _colorcatalog; - } - - set - { - if (_colorcatalog != value) - { - _colorcatalog = value; - - if (ColorCatalog != null) - { - ColorCatalogGuid = ColorCatalog.Guid; - } - - OnColorCatalogChanged(value); - - } - } - } - - protected Site _site; - - /// <summary> - /// Gets or sets the sitescatalogbase site. - /// </summary> - - [XmlIgnore] - [JsonIgnore] - public virtual Site Site - { - get - { - return _site; - } - - set - { - if (_site != value) - { - _site = value; - - if (Site != null) - { - SiteGuid = Site.Guid; - } - - OnSiteChanged(value); - - } - } - } - - /// <summary> - /// Called when the ColorCatalog has changed. - /// </summary> - protected virtual void OnColorCatalogChanged(ColorCatalog colorcatalog) - { - ColorCatalogChanged?.Invoke(this, colorcatalog); - RaisePropertyChanged(nameof(ColorCatalog)); - } - - /// <summary> - /// Called when the Site has changed. - /// </summary> - protected virtual void OnSiteChanged(Site site) - { - SiteChanged?.Invoke(this, site); - RaisePropertyChanged(nameof(Site)); - } - - /// <summary> - /// Initializes a new instance of the <see cref="SitesCatalogBase" /> class. - /// </summary> - public SitesCatalogBase() : base() - { - } - } -} |
