本文整理汇总了C#中System.Data.OleDb.OleDbCommand.TakeBindingOwnerShip方法的典型用法代码示例。如果您正苦于以下问题:C# OleDbCommand.TakeBindingOwnerShip方法的具体用法?C# OleDbCommand.TakeBindingOwnerShip怎么用?C# OleDbCommand.TakeBindingOwnerShip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.OleDb.OleDbCommand
的用法示例。
在下文中一共展示了OleDbCommand.TakeBindingOwnerShip方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OleDbDataReader
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;
}
示例2: OleDbDataReader
// 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;
}