Synchronization code

This commit is contained in:
sunkaixuan 2023-04-17 08:42:11 +08:00
parent 92ed5309cf
commit 458d6a9c67

View File

@ -92,10 +92,16 @@ namespace SqlSugar
{
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(item.Length > 9 ? UtilConstants.LongType.Name : UtilConstants.IntType.Name);
}
else if (item.IsJson && item.DataType == null)
else if (item.IsJson && item.DataType == null)
{
result.DataType = "json";
}
else if (propertyType == UtilConstants.DecType&&item.Length==0&&item.DecimalDigits==0)
{
result.Length = 18;
result.DecimalDigits = 4;
result.DataType = "decimal";
}
else
{
var name = GetType(propertyType.Name);