aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs259
1 files changed, 0 insertions, 259 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs b/Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs
deleted file mode 100644
index 071dd7ea9..000000000
--- a/Software/Visual_Studio/Tango.BL/Entities/SiteBase.cs
+++ /dev/null
@@ -1,259 +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")]
- public abstract class SiteBase : ObservableEntity<Site>
- {
-
- public event EventHandler<String> NameChanged;
-
- public event EventHandler<String> DescriptionChanged;
-
- public event EventHandler<Organization> OrganizationChanged;
-
- public event EventHandler<SynchronizedObservableCollection<SitesCatalog>> SitesCatalogsChanged;
-
- public event EventHandler<SynchronizedObservableCollection<SitesRml>> SitesRmlsChanged;
-
- protected String _organizationguid;
-
- /// <summary>
- /// Gets or sets the sitebase organization guid.
- /// </summary>
-
- [Column("ORGANIZATION_GUID")]
- [ForeignKey("Organization")]
-
- public String OrganizationGuid
- {
- get
- {
- return _organizationguid;
- }
-
- set
- {
- if (_organizationguid != value)
- {
- _organizationguid = value;
-
- }
- }
- }
-
- protected String _name;
-
- /// <summary>
- /// Gets or sets the sitebase name.
- /// </summary>
-
- [Column("NAME")]
-
- public String Name
- {
- get
- {
- return _name;
- }
-
- set
- {
- if (_name != value)
- {
- _name = value;
-
- OnNameChanged(value);
-
- }
- }
- }
-
- protected String _description;
-
- /// <summary>
- /// Gets or sets the sitebase description.
- /// </summary>
-
- [Column("DESCRIPTION")]
-
- public String Description
- {
- get
- {
- return _description;
- }
-
- set
- {
- if (_description != value)
- {
- _description = value;
-
- OnDescriptionChanged(value);
-
- }
- }
- }
-
- protected Organization _organization;
-
- /// <summary>
- /// Gets or sets the sitebase organization.
- /// </summary>
-
- [XmlIgnore]
- [JsonIgnore]
- public virtual Organization Organization
- {
- get
- {
- return _organization;
- }
-
- set
- {
- if (_organization != value)
- {
- _organization = value;
-
- if (Organization != null)
- {
- OrganizationGuid = Organization.Guid;
- }
-
- OnOrganizationChanged(value);
-
- }
- }
- }
-
- protected SynchronizedObservableCollection<SitesCatalog> _sitescatalogs;
-
- /// <summary>
- /// Gets or sets the sitebase sites catalogs.
- /// </summary>
-
- public virtual SynchronizedObservableCollection<SitesCatalog> SitesCatalogs
- {
- get
- {
- return _sitescatalogs;
- }
-
- set
- {
- if (_sitescatalogs != value)
- {
- _sitescatalogs = value;
-
- OnSitesCatalogsChanged(value);
-
- }
- }
- }
-
- protected SynchronizedObservableCollection<SitesRml> _sitesrmls;
-
- /// <summary>
- /// Gets or sets the sitebase sites rmls.
- /// </summary>
-
- public virtual SynchronizedObservableCollection<SitesRml> SitesRmls
- {
- get
- {
- return _sitesrmls;
- }
-
- set
- {
- if (_sitesrmls != value)
- {
- _sitesrmls = value;
-
- OnSitesRmlsChanged(value);
-
- }
- }
- }
-
- /// <summary>
- /// Called when the Name has changed.
- /// </summary>
- protected virtual void OnNameChanged(String name)
- {
- NameChanged?.Invoke(this, name);
- RaisePropertyChanged(nameof(Name));
- }
-
- /// <summary>
- /// Called when the Description has changed.
- /// </summary>
- protected virtual void OnDescriptionChanged(String description)
- {
- DescriptionChanged?.Invoke(this, description);
- RaisePropertyChanged(nameof(Description));
- }
-
- /// <summary>
- /// Called when the Organization has changed.
- /// </summary>
- protected virtual void OnOrganizationChanged(Organization organization)
- {
- OrganizationChanged?.Invoke(this, organization);
- RaisePropertyChanged(nameof(Organization));
- }
-
- /// <summary>
- /// Called when the SitesCatalogs has changed.
- /// </summary>
- protected virtual void OnSitesCatalogsChanged(SynchronizedObservableCollection<SitesCatalog> sitescatalogs)
- {
- SitesCatalogsChanged?.Invoke(this, sitescatalogs);
- RaisePropertyChanged(nameof(SitesCatalogs));
- }
-
- /// <summary>
- /// Called when the SitesRmls has changed.
- /// </summary>
- protected virtual void OnSitesRmlsChanged(SynchronizedObservableCollection<SitesRml> sitesrmls)
- {
- SitesRmlsChanged?.Invoke(this, sitesrmls);
- RaisePropertyChanged(nameof(SitesRmls));
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="SiteBase" /> class.
- /// </summary>
- public SiteBase() : base()
- {
-
- SitesCatalogs = new SynchronizedObservableCollection<SitesCatalog>();
-
- SitesRmls = new SynchronizedObservableCollection<SitesRml>();
-
- }
- }
-}