This commit is contained in:
sunkaixuan
2019-03-29 23:03:31 +08:00
parent 07142b3f89
commit 99ed7e8ad3

View File

@@ -134,6 +134,9 @@ namespace SqlSugar
typeName = "int"; typeName = "int";
if (typeName == "int64") if (typeName == "int64")
typeName = "long"; typeName = "long";
if (typeName == "int16")
typeName = "short";
var isAnyType = PostgreSQLDbBind.MappingTypesConst.Where(x => x.Value.ToString().ToLower() == typeName).Any(); var isAnyType = PostgreSQLDbBind.MappingTypesConst.Where(x => x.Value.ToString().ToLower() == typeName).Any();
if (isAnyType) if (isAnyType)
{ {