Fixes: U4-1459 Textstring Datatypes stores values in NText field when used on Membertype

This commit is contained in:
NielsHartvig@UMBRACORATI.localdomain
2013-01-15 14:15:50 -01:00
parent 8cf8503d56
commit 3403b168f2

View File

@@ -588,7 +588,7 @@ namespace umbraco.cms.businesslogic.member
if (property.Value != null)
{
string dbType = property.PropertyType.DataTypeDefinition.DbType;
if (dbType.Equals("dataInt"))
if (dbType.Equals("Int"))
{
int value = 0;
if (int.TryParse(property.Value.ToString(), out value))
@@ -596,11 +596,11 @@ namespace umbraco.cms.businesslogic.member
poco.Integer = value;
}
}
else if (dbType.Equals("dataDate"))
else if (dbType.Equals("Date"))
{
poco.Date = DateTime.Parse(property.Value.ToString());
}
else if (dbType.Equals("dataNvarchar"))
else if (dbType.Equals("Nvarchar"))
{
poco.VarChar = property.Value.ToString();
}