Added Postal Code Length to country provisioning

This commit is contained in:
Rick Falkvinge
2014-12-14 09:11:03 +01:00
parent 31d334a765
commit a7195885b4
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -473,6 +473,8 @@ namespace Swarmops.Site.Automation
private int geographyIdField;
private int postalCodeLengthField;
/// <remarks/>
public int CountryId
{
@@ -480,6 +482,13 @@ namespace Swarmops.Site.Automation
set { this.countryIdField = value; }
}
/// <remarks/>
public int PostalCodeLength
{
get { return this.postalCodeLengthField; }
set { this.postalCodeLengthField = value; }
}
/// <remarks/>
public string Name
{
+1 -1
View File
@@ -400,7 +400,7 @@ public partial class Pages_v5_Init_Default : Page
countryIdTranslation[country.Code] = SwarmDb.GetDatabaseForWriting().CreateCountry (country.Name,
country.Code,
country.Culture,
rootGeographyId, 5,
rootGeographyId, country.PostalCodeLength,
string.Empty);
count++;