|
@ -9,7 +9,7 @@ namespace SqlSugar |
|
|
public override string GetPropertyTypeName(string dbTypeName) |
|
|
public override string GetPropertyTypeName(string dbTypeName) |
|
|
{ |
|
|
{ |
|
|
dbTypeName = dbTypeName.ToLower(); |
|
|
dbTypeName = dbTypeName.ToLower(); |
|
|
var propertyTypes = MappingTypes.Where(it => it.Value.ToString().ToLower() == dbTypeName||it.Key.ToLower()== dbTypeName); |
|
|
var propertyTypes = MappingTypes.Where(it => it.Value.ToString().ToLower() == dbTypeName || it.Key.ToLower() == dbTypeName); |
|
|
if (dbTypeName == "int32") |
|
|
if (dbTypeName == "int32") |
|
|
{ |
|
|
{ |
|
|
return "int"; |
|
|
return "int"; |
|
@ -30,6 +30,10 @@ namespace SqlSugar |
|
|
{ |
|
|
{ |
|
|
return "string"; |
|
|
return "string"; |
|
|
} |
|
|
} |
|
|
|
|
|
if (dbTypeName == "byte[]") |
|
|
|
|
|
{ |
|
|
|
|
|
return "byte[]"; |
|
|
|
|
|
} |
|
|
else if (propertyTypes == null || propertyTypes.Count() == 0) |
|
|
else if (propertyTypes == null || propertyTypes.Count() == 0) |
|
|
{ |
|
|
{ |
|
|
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName)); |
|
|
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName)); |
|
|