Update PgSql split table bug

This commit is contained in:
sunkaixuan
2022-10-29 10:16:58 +08:00
parent cb32f54c3e
commit 28ae143513

View File

@@ -143,6 +143,13 @@ namespace SqlSugar
var dbType = columnInfo?.DataType;
if (dbType == null) {
var typeName = it.PropertyType.Name.ToLower();
if (columnInfo==null&&it.PropertyType.IsEnum)
{
if (this.Context.CurrentConnectionConfig?.MoreSettings?.TableEnumIsString!=true)
{
typeName = "int";
}
}
if (typeName == "int32")
typeName = "int";
if (typeName == "int64")