|
|
@ -9,7 +9,7 @@ namespace SqlSugar |
|
|
|
public override string GetPropertyTypeName(string dbTypeName) |
|
|
|
{ |
|
|
|
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") |
|
|
|
{ |
|
|
|
return "int"; |
|
|
@ -30,6 +30,10 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
return "string"; |
|
|
|
} |
|
|
|
if (dbTypeName == "byte[]") |
|
|
|
{ |
|
|
|
return "byte[]"; |
|
|
|
} |
|
|
|
else if (propertyTypes == null || propertyTypes.Count() == 0) |
|
|
|
{ |
|
|
|
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName)); |
|
|
@ -75,7 +79,7 @@ namespace SqlSugar |
|
|
|
new KeyValuePair<string, CSharpDataType>("clob",CSharpDataType.@string), |
|
|
|
new KeyValuePair<string, CSharpDataType>("long",CSharpDataType.@string), |
|
|
|
new KeyValuePair<string, CSharpDataType>("nclob",CSharpDataType.@string), |
|
|
|
new KeyValuePair<string, CSharpDataType>("rowid",CSharpDataType.@string), |
|
|
|
new KeyValuePair<string, CSharpDataType>("rowid",CSharpDataType.@string), |
|
|
|
|
|
|
|
new KeyValuePair<string, CSharpDataType>("date",CSharpDataType.DateTime), |
|
|
|
new KeyValuePair<string, CSharpDataType>("timestamp",CSharpDataType.DateTime), |
|
|
|