Browse Source

Merge pull request #907 from longtaosu/SqlSugar5

fix the dbtype resolve error when using pg
pull/3/head
果糖网 4 years ago
committed by GitHub
parent
commit
90ba782878
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

2
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

@ -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

Loading…
Cancel
Save