mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
fix the dbtype resolve error when using pg
This commit is contained in:
@@ -563,6 +563,8 @@ namespace SqlSugar
|
|||||||
type = DbType.Sqlite;
|
type = DbType.Sqlite;
|
||||||
else if (this.Context is OracleExpressionContext)
|
else if (this.Context is OracleExpressionContext)
|
||||||
type = DbType.Oracle;
|
type = DbType.Oracle;
|
||||||
|
else if (this.Context is PostgreSQLExpressionContext)
|
||||||
|
type = DbType.PostgreSQL;
|
||||||
return this.Context.SqlFuncServices.First(it => it.UniqueMethodName == name).MethodValue(model, type, this.Context);
|
return this.Context.SqlFuncServices.First(it => it.UniqueMethodName == name).MethodValue(model, type, this.Context);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user