mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 04:59:34 +08:00
Db.Fastest
This commit is contained in:
parent
0bb8ea59c0
commit
8ae679116c
@ -97,6 +97,26 @@ namespace SqlSugar
|
||||
{
|
||||
value = Convert.ToDateTime("1900-01-01");
|
||||
}
|
||||
else if (columnInfo.IsJson)
|
||||
{
|
||||
columnInfo.IsJson = true;
|
||||
}
|
||||
else if (columnInfo.IsArray)
|
||||
{
|
||||
columnInfo.IsArray = true;
|
||||
}
|
||||
else if (columnInfo.UnderType.IsEnum() )
|
||||
{
|
||||
value = Convert.ToInt64(value);
|
||||
}
|
||||
else if (columnInfo.IsJson && value != null)
|
||||
{
|
||||
value = this.context.Utilities.SerializeObject(value);
|
||||
}
|
||||
else if (columnInfo.IsTranscoding && value.HasValue())
|
||||
{
|
||||
value = UtilMethods.EncodeBase64(value.ToString());
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user