mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
fix the dbtype resolve error when using pg
This commit is contained in:
@@ -563,6 +563,8 @@ namespace SqlSugar
|
||||
type = DbType.Sqlite;
|
||||
else if (this.Context is OracleExpressionContext)
|
||||
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);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user