Here are the examples of the csharp api class System.Data.Common.DbParameterCollection.Insert(int, object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licenseprotected void AddParameter(string name) { EffortParameter parameter = new EffortParameter(); parameter.ParameterName = name; this.Parameters.Insert(0, parameter); }
0
2. Example
View licenseprivate DbCommand PrepareCommand(Statement statement) { DbCommand command = m_Da/n ..... /n //View Source file for more details /n }
0
3. Example
View licenseprotected override void OnBeforePrepare(DbCommand command) { base.OnBeforePrepare(command); // need to explicitly turn on named parameter binding // http://tgaw.wordpress.com/2006/03/03/ora-01722-with-odp-and-command-parameters/ _commandBindByNameSetter(command, true); var detail = CallableParser.Parse(command.CommandText); if (!detail.IsCallable) return; command.CommandType = CommandType.StoredProcedure; command.CommandText = detail.FunctionName; _commandBindByNameSetter(command, false); var outCursor = command.CreateParameter(); _parameterOracleDbTypeSetter(outCursor, _oracleDbTypeRefCursor); outCursor.Direction = detail.HasReturn ? ParameterDirection.ReturnValue : ParameterDirection.Output; command.Parameters.Insert(0, outCursor); }