- 优化 ORACLE Command 绑定变量 BindByName = true;#107

This commit is contained in:
28810
2019-10-09 17:23:19 +08:00
parent 741c558d91
commit c2ec5a34b1

View File

@ -57,7 +57,9 @@ namespace FreeSql.Oracle
protected override DbCommand CreateCommand() protected override DbCommand CreateCommand()
{ {
return new OracleCommand(); var cmd = new OracleCommand();
cmd.BindByName = true;
return cmd;
} }
protected override void ReturnConnection(ObjectPool<DbConnection> pool, Object<DbConnection> conn, Exception ex) protected override void ReturnConnection(ObjectPool<DbConnection> pool, Object<DbConnection> conn, Exception ex)