PgSql Bug

This commit is contained in:
sunkaixuan 2019-03-29 22:29:05 +08:00
parent 70e11c7d81
commit f207ce61b5
2 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ namespace SqlSugar
var dbType = columnInfo?.DataType;
if (dbType == null) {
var typeName = it.PropertyType.Name.ToLower();
if (typeName == "int32")
typeName = "int";
if (typeName == "int64")
typeName = "long";
var isAnyType = PostgreSQLDbBind.MappingTypesConst.Where(x => x.Value.ToString().ToLower() == typeName).Any();
if (isAnyType)
{