Fixes: U4-1459 Textstring Datatypes stores values in NText field when used on Membertype
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user