diff --git a/Basic/Basic.csproj b/Basic/Basic.csproj
index 2fc1464c..78dd231f 100644
--- a/Basic/Basic.csproj
+++ b/Basic/Basic.csproj
@@ -72,7 +72,7 @@
-
+
@@ -97,8 +97,8 @@
-
-
+
+
@@ -147,7 +147,7 @@
-
+
@@ -156,7 +156,7 @@
Code
-
+
True
True
@@ -171,9 +171,8 @@
-
+
-
@@ -191,4 +190,4 @@
-
+
\ No newline at end of file
diff --git a/Basic/Types/GeographyWithPeople.cs b/Basic/Types/GeographyWithPeople.cs
deleted file mode 100644
index dcf8aa5c..00000000
--- a/Basic/Types/GeographyWithPeople.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicGeographyWithPeople
- {
- public int ActivistCount;
- public int GeographyID;
- public string GeograpyName;
- public string LeadContent;
- public int MemberCount;
- public int OrgId = 0;
- public string OrgName;
- public int ParentGeographyId;
- public int ParentOrgId;
- public string SecondsContent;
- }
-}
\ No newline at end of file
diff --git a/Basic/Types/BasicCity.cs b/Basic/Types/Structure/BasicCity.cs
similarity index 79%
rename from Basic/Types/BasicCity.cs
rename to Basic/Types/Structure/BasicCity.cs
index f7113294..05bddc33 100644
--- a/Basic/Types/BasicCity.cs
+++ b/Basic/Types/Structure/BasicCity.cs
@@ -1,42 +1,42 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicCity : IHasIdentity
- {
- public BasicCity (int cityId, string name, int countryId, int geographyId)
- {
- CityId = cityId;
- Name = name;
- CountryId = countryId;
- GeographyId = geographyId;
- }
-
- public BasicCity (BasicCity original)
- : this (original.CityId, original.Name, original.CountryId, original.GeographyId)
- {
- }
-
- [Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
- public BasicCity()
- {
- // this ctor should never be called from code
- }
-
- public int CityId { get; private set; }
- public string Name { get; protected set; }
- public int CountryId { get; protected set; }
- public int GeographyId { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return CityId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Structure
+{
+ [Serializable]
+ public class BasicCity : IHasIdentity
+ {
+ public BasicCity (int cityId, string name, int countryId, int geographyId)
+ {
+ this.CityId = cityId;
+ this.Name = name;
+ this.CountryId = countryId;
+ this.GeographyId = geographyId;
+ }
+
+ public BasicCity (BasicCity original)
+ : this (original.CityId, original.Name, original.CountryId, original.GeographyId)
+ {
+ }
+
+ [Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
+ public BasicCity()
+ {
+ // this ctor should never be called from code
+ }
+
+ public int CityId { get; private set; }
+ public string Name { get; protected set; }
+ public int CountryId { get; protected set; }
+ public int GeographyId { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.CityId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicCountry.cs b/Basic/Types/Structure/BasicCountry.cs
similarity index 79%
rename from Basic/Types/BasicCountry.cs
rename to Basic/Types/Structure/BasicCountry.cs
index 1a913533..ac838bdb 100644
--- a/Basic/Types/BasicCountry.cs
+++ b/Basic/Types/Structure/BasicCountry.cs
@@ -1,69 +1,69 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicCountry : IHasIdentity
- {
- public BasicCountry (int countryId, string name, string code)
- {
- CountryId = countryId;
- Name = name;
- Code = code;
- }
-
- public BasicCountry (int countryId, string name, string code, string defaultCulture, string currencyCode,
- int geographyId, int postalCodeLength)
- : this (countryId, name, code)
- {
- Culture = defaultCulture;
- CurrencyCode = currencyCode;
- GeographyId = geographyId;
- PostalCodeLength = postalCodeLength;
- }
-
- public BasicCountry (BasicCountry original)
- : this (
- original.CountryId, original.Name, original.Code, original.Culture, original.CurrencyCode,
- original.GeographyId, original.PostalCodeLength)
- {
- }
-
- [Obsolete ("Do not call this function directly. It exists to enable serialization.", true)]
- public BasicCountry()
- {
- // this does not initialize the Basic Country, but exists to enable serialization.
- }
-
- public int CountryId { get; private set; }
- public string Name { get; protected set; }
- public string Code { get; protected set; }
- public string Culture { get; protected set; }
- public string CurrencyCode { get; protected set; }
- public int GeographyId { get; protected set; }
- public int PostalCodeLength { get; protected set; }
-
- public int CurrencyId
- {
- get
- {
- if (Code == "SE")
- {
- return 1;
- }
-
- throw new NotImplementedException ("BasicCountry.CurrencyId");
- }
- }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return CountryId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Structure
+{
+ [Serializable]
+ public class BasicCountry : IHasIdentity
+ {
+ public BasicCountry (int countryId, string name, string code)
+ {
+ this.CountryId = countryId;
+ this.Name = name;
+ this.Code = code;
+ }
+
+ public BasicCountry (int countryId, string name, string code, string defaultCulture, string currencyCode,
+ int geographyId, int postalCodeLength)
+ : this (countryId, name, code)
+ {
+ this.Culture = defaultCulture;
+ this.CurrencyCode = currencyCode;
+ this.GeographyId = geographyId;
+ this.PostalCodeLength = postalCodeLength;
+ }
+
+ public BasicCountry (BasicCountry original)
+ : this (
+ original.CountryId, original.Name, original.Code, original.Culture, original.CurrencyCode,
+ original.GeographyId, original.PostalCodeLength)
+ {
+ }
+
+ [Obsolete ("Do not call this function directly. It exists to enable serialization.", true)]
+ public BasicCountry()
+ {
+ // this does not initialize the Basic Country, but exists to enable serialization.
+ }
+
+ public int CountryId { get; private set; }
+ public string Name { get; protected set; }
+ public string Code { get; protected set; }
+ public string Culture { get; protected set; }
+ public string CurrencyCode { get; protected set; }
+ public int GeographyId { get; protected set; }
+ public int PostalCodeLength { get; protected set; }
+
+ public int CurrencyId
+ {
+ get
+ {
+ if (this.Code == "SE")
+ {
+ return 1;
+ }
+
+ throw new NotImplementedException ("BasicCountry.CurrencyId");
+ }
+ }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.CountryId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicGeography.cs b/Basic/Types/Structure/BasicGeography.cs
similarity index 85%
rename from Basic/Types/BasicGeography.cs
rename to Basic/Types/Structure/BasicGeography.cs
index 65047d25..abc238d6 100644
--- a/Basic/Types/BasicGeography.cs
+++ b/Basic/Types/Structure/BasicGeography.cs
@@ -1,65 +1,65 @@
-using System;
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- ///
- /// A geographical node.
- ///
- [Serializable]
- public class BasicGeography : IHasIdentity
- {
- public BasicGeography (int geographyId, int parentGeographyId, string name)
- : this (geographyId, parentGeographyId, name, 0)
- {
- }
-
- public BasicGeography (int geographyId, int parentGeographyId, string name, int generation)
- {
- GeographyId = geographyId;
- ParentGeographyId = parentGeographyId;
- Name = name;
- Generation = generation;
- }
-
- public BasicGeography (BasicGeography original)
- : this (original.GeographyId, original.ParentGeographyId, original.Name, original.Generation)
- {
- }
-
- [Obsolete ("Do not use this ctor. It is provided to enable serializability.", true)]
- public BasicGeography()
- {
- // provided for serializability - does not initialize fields
- }
-
- ///
- /// The database id of this geography.
- ///
- public int GeographyId { get; private set; }
-
- ///
- /// The database id of the parent geography, for linking in a tree structure.
- ///
- public int ParentGeographyId { get; protected set; }
-
- ///
- /// The friendly name of the node (city, county, region, etc).
- ///
- public string Name { get; protected set; }
-
- ///
- /// The generation of this node. Used in tree-style listings.
- ///
- public int Generation { get; protected set; }
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return GeographyId; }
- }
-
- #endregion
- }
+using System;
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Structure
+{
+ ///
+ /// A geographical node.
+ ///
+ [Serializable]
+ public class BasicGeography : IHasIdentity
+ {
+ public BasicGeography (int geographyId, int parentGeographyId, string name)
+ : this (geographyId, parentGeographyId, name, 0)
+ {
+ }
+
+ public BasicGeography (int geographyId, int parentGeographyId, string name, int generation)
+ {
+ this.GeographyId = geographyId;
+ this.ParentGeographyId = parentGeographyId;
+ this.Name = name;
+ this.Generation = generation;
+ }
+
+ public BasicGeography (BasicGeography original)
+ : this (original.GeographyId, original.ParentGeographyId, original.Name, original.Generation)
+ {
+ }
+
+ [Obsolete ("Do not use this ctor. It is provided to enable serializability.", true)]
+ public BasicGeography()
+ {
+ // provided for serializability - does not initialize fields
+ }
+
+ ///
+ /// The database id of this geography.
+ ///
+ public int GeographyId { get; private set; }
+
+ ///
+ /// The database id of the parent geography, for linking in a tree structure.
+ ///
+ public int ParentGeographyId { get; protected set; }
+
+ ///
+ /// The friendly name of the node (city, county, region, etc).
+ ///
+ public string Name { get; protected set; }
+
+ ///
+ /// The generation of this node. Used in tree-style listings.
+ ///
+ public int Generation { get; protected set; }
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.GeographyId; }
+ }
+
+ #endregion
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicGeographyDesignation.cs b/Basic/Types/Structure/BasicGeographyDesignation.cs
similarity index 76%
rename from Basic/Types/BasicGeographyDesignation.cs
rename to Basic/Types/Structure/BasicGeographyDesignation.cs
index acfe42ef..d5e59964 100644
--- a/Basic/Types/BasicGeographyDesignation.cs
+++ b/Basic/Types/Structure/BasicGeographyDesignation.cs
@@ -1,27 +1,27 @@
-using Swarmops.Basic.Enums;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicGeographyDesignation
- {
- public BasicGeographyDesignation (int geographyId, int countryId,
- string designation, GeographyLevel geoLevelId)
- {
- GeographyId = geographyId;
- CountryId = countryId;
- Designation = designation;
- GeographyLevel = geoLevelId;
- }
-
- public BasicGeographyDesignation (BasicGeographyDesignation original) :
- this (original.GeographyId, original.CountryId, original.Designation, original.GeographyLevel)
- {
- // empty copy ctor
- }
-
- public int GeographyId { get; private set; }
- public int CountryId { get; private set; }
- public string Designation { get; private set; }
- public GeographyLevel GeographyLevel { get; private set; }
- }
+using Swarmops.Basic.Enums;
+
+namespace Swarmops.Basic.Types.Structure
+{
+ public class BasicGeographyDesignation
+ {
+ public BasicGeographyDesignation (int geographyId, int countryId,
+ string designation, GeographyLevel geoLevelId)
+ {
+ this.GeographyId = geographyId;
+ this.CountryId = countryId;
+ this.Designation = designation;
+ this.GeographyLevel = geoLevelId;
+ }
+
+ public BasicGeographyDesignation (BasicGeographyDesignation original) :
+ this (original.GeographyId, original.CountryId, original.Designation, original.GeographyLevel)
+ {
+ // empty copy ctor
+ }
+
+ public int GeographyId { get; private set; }
+ public int CountryId { get; private set; }
+ public string Designation { get; private set; }
+ public GeographyLevel GeographyLevel { get; private set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicOrganization.cs b/Basic/Types/Structure/BasicOrganization.cs
similarity index 78%
rename from Basic/Types/BasicOrganization.cs
rename to Basic/Types/Structure/BasicOrganization.cs
index 47f18c86..b89a7801 100644
--- a/Basic/Types/BasicOrganization.cs
+++ b/Basic/Types/Structure/BasicOrganization.cs
@@ -1,93 +1,93 @@
-using Swarmops.Basic.Interfaces;
-
-namespace Swarmops.Basic.Types
-{
- public class BasicOrganization : IHasIdentity
- {
- private string nameShort;
-
- #region IHasIdentity Members
-
- public int Identity
- {
- get { return OrganizationId; }
- }
-
- #endregion
-
- public BasicOrganization()
- {
- }
-
- public BasicOrganization (int organizationId, string name, string nameInternational)
- {
- OrganizationId = organizationId;
- Name = name;
- NameInternational = nameInternational;
- }
-
- public BasicOrganization (int organizationId, int parentOrganizationId, string name, string nameInternational) :
- this (organizationId, name, nameInternational)
- {
- ParentOrganizationId = parentOrganizationId;
- }
-
-
- public BasicOrganization (int organizationId, int parentOrganizationId, string name, string nameInternational,
- string nameShort, string domain, string mailPrefix, int anchorGeographyId,
- bool acceptsMembers, bool autoAssignNewMembers,
- int defaultCountryId)
- : this (organizationId, parentOrganizationId, name, nameInternational)
- {
- this.nameShort = nameShort;
- Domain = domain;
- MailPrefix = mailPrefix;
- AnchorGeographyId = anchorGeographyId;
- AcceptsMembers = acceptsMembers;
- AutoAssignNewMembers = autoAssignNewMembers;
- DefaultCountryId = defaultCountryId;
- }
-
- public BasicOrganization (BasicOrganization original)
- : this (
- original.Identity, original.ParentOrganizationId, original.Name, original.NameInternational,
- original.NameShort, original.Domain, original.MailPrefix, original.AnchorGeographyId,
- original.AcceptsMembers, original.AutoAssignNewMembers, original.DefaultCountryId)
- {
- }
-
- public int DefaultCountryId { get; protected set; }
-
- public string Name { get; protected set; }
-
- public string NameInternational { get; protected set; }
-
- public string NameShort
- {
- get
- {
- if (this.nameShort.Length > 0)
- {
- return this.nameShort;
- }
-
- return Name;
- }
- set { this.nameShort = value; }
- }
-
- public string Domain { get; protected set; }
-
- public string MailPrefix { get; protected set; }
-
- public int AnchorGeographyId { get; protected set; }
-
- public bool AcceptsMembers { get; protected set; }
-
- public int OrganizationId { get; protected set; }
-
- public int ParentOrganizationId { get; protected set; }
-
- public bool AutoAssignNewMembers { get; protected set; }
- }
+using Swarmops.Basic.Interfaces;
+
+namespace Swarmops.Basic.Types.Structure
+{
+ public class BasicOrganization : IHasIdentity
+ {
+ private string nameShort;
+
+ #region IHasIdentity Members
+
+ public int Identity
+ {
+ get { return this.OrganizationId; }
+ }
+
+ #endregion
+
+ public BasicOrganization()
+ {
+ }
+
+ public BasicOrganization (int organizationId, string name, string nameInternational)
+ {
+ this.OrganizationId = organizationId;
+ this.Name = name;
+ this.NameInternational = nameInternational;
+ }
+
+ public BasicOrganization (int organizationId, int parentOrganizationId, string name, string nameInternational) :
+ this (organizationId, name, nameInternational)
+ {
+ this.ParentOrganizationId = parentOrganizationId;
+ }
+
+
+ public BasicOrganization (int organizationId, int parentOrganizationId, string name, string nameInternational,
+ string nameShort, string domain, string mailPrefix, int anchorGeographyId,
+ bool acceptsMembers, bool autoAssignNewMembers,
+ int defaultCountryId)
+ : this (organizationId, parentOrganizationId, name, nameInternational)
+ {
+ this.nameShort = nameShort;
+ this.Domain = domain;
+ this.MailPrefix = mailPrefix;
+ this.AnchorGeographyId = anchorGeographyId;
+ this.AcceptsMembers = acceptsMembers;
+ this.AutoAssignNewMembers = autoAssignNewMembers;
+ this.DefaultCountryId = defaultCountryId;
+ }
+
+ public BasicOrganization (BasicOrganization original)
+ : this (
+ original.Identity, original.ParentOrganizationId, original.Name, original.NameInternational,
+ original.NameShort, original.Domain, original.MailPrefix, original.AnchorGeographyId,
+ original.AcceptsMembers, original.AutoAssignNewMembers, original.DefaultCountryId)
+ {
+ }
+
+ public int DefaultCountryId { get; protected set; }
+
+ public string Name { get; protected set; }
+
+ public string NameInternational { get; protected set; }
+
+ public string NameShort
+ {
+ get
+ {
+ if (this.nameShort.Length > 0)
+ {
+ return this.nameShort;
+ }
+
+ return this.Name;
+ }
+ set { this.nameShort = value; }
+ }
+
+ public string Domain { get; protected set; }
+
+ public string MailPrefix { get; protected set; }
+
+ public int AnchorGeographyId { get; protected set; }
+
+ public bool AcceptsMembers { get; protected set; }
+
+ public int OrganizationId { get; protected set; }
+
+ public int ParentOrganizationId { get; protected set; }
+
+ public bool AutoAssignNewMembers { get; protected set; }
+ }
}
\ No newline at end of file
diff --git a/Basic/Types/BasicPostalCode.cs b/Basic/Types/Structure/BasicPostalCode.cs
similarity index 78%
rename from Basic/Types/BasicPostalCode.cs
rename to Basic/Types/Structure/BasicPostalCode.cs
index b058db06..6110a33c 100644
--- a/Basic/Types/BasicPostalCode.cs
+++ b/Basic/Types/Structure/BasicPostalCode.cs
@@ -1,32 +1,32 @@
-using System;
-
-namespace Swarmops.Basic.Types
-{
- [Serializable]
- public class BasicPostalCode
- {
- public BasicPostalCode (int postalCodeId, string postalCode, int cityId, int countryId)
- {
- PostalCodeId = postalCodeId;
- PostalCode = postalCode.Replace (" ", "");
- CityId = cityId;
- CountryId = countryId;
- }
-
- public BasicPostalCode (BasicPostalCode original)
- : this (original.PostalCodeId, original.PostalCode, original.CityId, original.CountryId)
- {
- }
-
- [Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
- public BasicPostalCode()
- {
- // this should never be called from code
- }
-
- public int PostalCodeId { get; private set; }
- public string PostalCode { get; private set; } // any whitespace removed
- public int CityId { get; protected set; }
- public int CountryId { get; protected set; }
- }
+using System;
+
+namespace Swarmops.Basic.Types.Structure
+{
+ [Serializable]
+ public class BasicPostalCode
+ {
+ public BasicPostalCode (int postalCodeId, string postalCode, int cityId, int countryId)
+ {
+ this.PostalCodeId = postalCodeId;
+ this.PostalCode = postalCode.Replace (" ", "");
+ this.CityId = cityId;
+ this.CountryId = countryId;
+ }
+
+ public BasicPostalCode (BasicPostalCode original)
+ : this (original.PostalCodeId, original.PostalCode, original.CityId, original.CountryId)
+ {
+ }
+
+ [Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
+ public BasicPostalCode()
+ {
+ // this should never be called from code
+ }
+
+ public int PostalCodeId { get; private set; }
+ public string PostalCode { get; private set; } // any whitespace removed
+ public int CityId { get; protected set; }
+ public int CountryId { get; protected set; }
+ }
}
\ No newline at end of file
diff --git a/Database/Database-Countries.cs b/Database/Database-Countries.cs
index bb135f41..22f8f77a 100644
--- a/Database/Database-Countries.cs
+++ b/Database/Database-Countries.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Database/Database-Geographies.cs b/Database/Database-Geographies.cs
index 723f08f6..f10f78c3 100644
--- a/Database/Database-Geographies.cs
+++ b/Database/Database-Geographies.cs
@@ -4,6 +4,7 @@ using System.Data;
using System.Data.Common;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Database/Database-Newsletters.cs b/Database/Database-Newsletters.cs
index b94c6861..67508707 100644
--- a/Database/Database-Newsletters.cs
+++ b/Database/Database-Newsletters.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Database/Database-Organizations.cs b/Database/Database-Organizations.cs
index 2f6ac50c..2f7ab832 100644
--- a/Database/Database-Organizations.cs
+++ b/Database/Database-Organizations.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Database/Database-People.cs b/Database/Database-People.cs
index 7faec35e..175ddedb 100644
--- a/Database/Database-People.cs
+++ b/Database/Database-People.cs
@@ -5,6 +5,7 @@ using System.Data.Common;
using System.Diagnostics;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Database/Database-PostalCodes.cs b/Database/Database-PostalCodes.cs
index 42f692a4..e4e47cef 100644
--- a/Database/Database-PostalCodes.cs
+++ b/Database/Database-PostalCodes.cs
@@ -3,6 +3,7 @@ using System.Data.Common;
using Swarmops.Basic.Types;
// This is the first part of Database to fully use MySql.
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Database/Database-PostalCodesCities.cs b/Database/Database-PostalCodesCities.cs
index fbb44852..245ea436 100644
--- a/Database/Database-PostalCodesCities.cs
+++ b/Database/Database-PostalCodesCities.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Database
{
diff --git a/Logic/Cache/GeographyCache.cs b/Logic/Cache/GeographyCache.cs
index 19128a60..90668de1 100644
--- a/Logic/Cache/GeographyCache.cs
+++ b/Logic/Cache/GeographyCache.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Cache/OrganizationCache.cs b/Logic/Cache/OrganizationCache.cs
index 10f047e8..7693075c 100644
--- a/Logic/Cache/OrganizationCache.cs
+++ b/Logic/Cache/OrganizationCache.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Structure;
diff --git a/Logic/Security/Authorization.cs b/Logic/Security/Authorization.cs
index f2e2fdc1..4bf1dc6c 100644
--- a/Logic/Security/Authorization.cs
+++ b/Logic/Security/Authorization.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Security;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Structure;
diff --git a/Logic/Structure/Cities.cs b/Logic/Structure/Cities.cs
index 7fbfd9c6..2fd43f27 100644
--- a/Logic/Structure/Cities.cs
+++ b/Logic/Structure/Cities.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
namespace Swarmops.Logic.Structure
diff --git a/Logic/Structure/City.cs b/Logic/Structure/City.cs
index ac7fcdd5..4219e65f 100644
--- a/Logic/Structure/City.cs
+++ b/Logic/Structure/City.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
namespace Swarmops.Logic.Structure
diff --git a/Logic/Structure/Countries.cs b/Logic/Structure/Countries.cs
index 17bcfcd4..7027d758 100644
--- a/Logic/Structure/Countries.cs
+++ b/Logic/Structure/Countries.cs
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
namespace Swarmops.Logic.Structure
diff --git a/Logic/Structure/Country.cs b/Logic/Structure/Country.cs
index e0ce6bbc..2d0e5d20 100644
--- a/Logic/Structure/Country.cs
+++ b/Logic/Structure/Country.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Financial;
diff --git a/Logic/Structure/Geographies.cs b/Logic/Structure/Geographies.cs
index 9bea7c8b..60455b42 100644
--- a/Logic/Structure/Geographies.cs
+++ b/Logic/Structure/Geographies.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Support;
diff --git a/Logic/Structure/Geography.cs b/Logic/Structure/Geography.cs
index 2055a9ce..08cc895e 100644
--- a/Logic/Structure/Geography.cs
+++ b/Logic/Structure/Geography.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Xml.Serialization;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Interfaces;
diff --git a/Logic/Structure/Organization.cs b/Logic/Structure/Organization.cs
index f79387db..ba847cbf 100644
--- a/Logic/Structure/Organization.cs
+++ b/Logic/Structure/Organization.cs
@@ -6,6 +6,7 @@ using System.Text;
using System.Text.RegularExpressions;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Communications;
diff --git a/Logic/Structure/Organizations.cs b/Logic/Structure/Organizations.cs
index 254e2add..9b1cb484 100644
--- a/Logic/Structure/Organizations.cs
+++ b/Logic/Structure/Organizations.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Cache;
using Swarmops.Logic.Support;
diff --git a/Logic/Structure/PostalCode.cs b/Logic/Structure/PostalCode.cs
index 32c2ced0..0aade8fc 100644
--- a/Logic/Structure/PostalCode.cs
+++ b/Logic/Structure/PostalCode.cs
@@ -1,5 +1,6 @@
using System;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
namespace Swarmops.Logic.Structure
{
diff --git a/Logic/Structure/PostalCodes.cs b/Logic/Structure/PostalCodes.cs
index e15d6dfe..533cadfa 100644
--- a/Logic/Structure/PostalCodes.cs
+++ b/Logic/Structure/PostalCodes.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
namespace Swarmops.Logic.Structure
diff --git a/Logic/Swarm/People.cs b/Logic/Swarm/People.cs
index 09d8498c..793d8294 100644
--- a/Logic/Swarm/People.cs
+++ b/Logic/Swarm/People.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Logic.Security;
using Swarmops.Logic.Structure;
diff --git a/Logic/Swarm/Person.cs b/Logic/Swarm/Person.cs
index df2a9bd5..ee0b1b7f 100644
--- a/Logic/Swarm/Person.cs
+++ b/Logic/Swarm/Person.cs
@@ -7,6 +7,7 @@ using System.Text.RegularExpressions;
using Swarmops.Basic.Enums;
using Swarmops.Basic.Interfaces;
using Swarmops.Basic.Types;
+using Swarmops.Basic.Types.Structure;
using Swarmops.Database;
using Swarmops.Database.Attributes;
using Swarmops.Logic.Communications;