title: Not able to set OracleCommand.BindByName = true
body: <p>I upgraded to Oracle 12.1 and from then my <code>OracleCommand</code> is not working. I am passing parameter like <code>cmd.Parameters["Name"].Value = username;</code> but getting exception as <code>Message envlink:System.IndexOutOfRangeException: Invalid index -1 for this OracleParameterCollection with Count=0</code>. I did some search and found to <code>OracleCommand.BindByName = true</code> but not able to find method <code>BindByName</code>. I am using <code>System.Data.OracleClient</code> version <code>4.0.0.0</code>.
  How to resolve this?</p>