Is there a way to force OracleCommand.BindByName to be true by default for ODP.NET?

后端 未结 7 1628
粉色の甜心
粉色の甜心 2020-12-19 06:25

Since the System.Data.OracleClient library has been deprecated, we are in the process of migrating our code base to use Oracle Data Provider for .NET (ODP.NET) instead. One

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 06:31

    I didn't try it but,

    I have seen something like

    "cmd.GetType().GetProperty("BindByName").SetValue(cmd,true,null);" in PetaPoco.cs file.

    Maybe it can help.

提交回复
热议问题