internal OleDbDataReader(OleDbConnection connection, OleDbCommand command, int depth, CommandBehavior commandBehavior) { this._connection = connection; this._command = command; this._commandBehavior = commandBehavior; if ((command != null) && (this._depth == 0)) { this._parameterBindings = command.TakeBindingOwnerShip(); } this._depth = depth; }
// ctor for an ICommandText, IMultipleResults, IRowset, IRow // ctor for an ADODB.Recordset, ADODB.Record or Hierarchial resultset internal OleDbDataReader(OleDbConnection connection, OleDbCommand command, int depth, CommandBehavior commandBehavior) { OleDbConnection.VerifyExecutePermission(); _connection = connection; _command = command; _commandBehavior = commandBehavior; if ((null != command) && (0 == _depth)) { _parameterBindings = command.TakeBindingOwnerShip(); } _depth = depth; }