mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
DbFirst Guid Byte[] Bug
This commit is contained in:
parent
e7d0d7f5b9
commit
59ae02625a
@ -216,7 +216,7 @@ namespace SqlSugar
|
||||
method = getOtherNull.MakeGenericMethod(bindType);
|
||||
else
|
||||
method = getConvertDouble; break;
|
||||
case "guid":
|
||||
case "Guid":
|
||||
CheckType(guidThrow, objTypeName, transformedPropertyName, propertyName);
|
||||
if (objTypeName != "guid")
|
||||
method = getOtherNull.MakeGenericMethod(bindType);
|
||||
|
@ -267,7 +267,7 @@ namespace SqlSugar
|
||||
private string GetPropertyTypeName(DbColumnInfo item)
|
||||
{
|
||||
string result = this.Context.Ado.DbBind.GetCSharpType(item.DataType);
|
||||
if (result != "string" && item.IsNullable)
|
||||
if (result != "string"&&result!="byte[]"&&result!="object"&& item.IsNullable)
|
||||
{
|
||||
result += "?";
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ namespace SqlSugar
|
||||
reval = "byte";
|
||||
break;
|
||||
case "uniqueidentifier":
|
||||
reval = "guid";
|
||||
reval = "Guid";
|
||||
break;
|
||||
case "varbinary":
|
||||
reval = "byte[]";
|
||||
|
Loading…
Reference in New Issue
Block a user