mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update sqlserver codefirst
This commit is contained in:
parent
2303431fe7
commit
bc39726542
@ -44,11 +44,11 @@ namespace SqlSugar
|
||||
else
|
||||
{
|
||||
var name = GetType(propertyType.Name);
|
||||
if (name == "varbinary" && item.Length == 0)
|
||||
{
|
||||
name = "varbinary(max)";
|
||||
}
|
||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
||||
if (result.DataType == "varbinary" && item.Length == 0)
|
||||
{
|
||||
result.DataType = "varbinary(max)";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user