mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
PgSql Bug
This commit is contained in:
@@ -130,6 +130,10 @@ namespace SqlSugar
|
|||||||
var dbType = columnInfo?.DataType;
|
var dbType = columnInfo?.DataType;
|
||||||
if (dbType == null) {
|
if (dbType == null) {
|
||||||
var typeName = it.PropertyType.Name.ToLower();
|
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();
|
var isAnyType = PostgreSQLDbBind.MappingTypesConst.Where(x => x.Value.ToString().ToLower() == typeName).Any();
|
||||||
if (isAnyType)
|
if (isAnyType)
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user