mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
Synchronization code
This commit is contained in:
@@ -44,11 +44,11 @@ namespace SqlSugar
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var name = GetType(propertyType.Name);
|
var name = GetType(propertyType.Name);
|
||||||
if (name == "varbinary" && item.Length == 0)
|
|
||||||
{
|
|
||||||
name = "varbinary(max)";
|
|
||||||
}
|
|
||||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
||||||
|
if (result.DataType == "varbinary" && item.Length == 0)
|
||||||
|
{
|
||||||
|
result.DataType = "varbinary(max)";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user