DbFirst Guid Byte[] Bug

This commit is contained in:
sunkaixuan 2017-06-01 12:36:46 +08:00
parent e7d0d7f5b9
commit 59ae02625a
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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 += "?";
}

View File

@ -76,7 +76,7 @@ namespace SqlSugar
reval = "byte";
break;
case "uniqueidentifier":
reval = "guid";
reval = "Guid";
break;
case "varbinary":
reval = "byte[]";