# C1.DataConnector.AdoNet.DbCommandWrap-3

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_DataConnector_AdoNet_DbCommandWrap_3" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3" class="text-break">DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt; Class
</h1>
  <div class="markdown level0 summary"><p>DBCommand Wrap class that uses to custom a data provider for a specific data source.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand">DbCommand</a></div>
    <div class="level4"><span class="xref">DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;</span></div>
      <div class="level5"><a class="xref" href="C1.AdoNet.D365S.C1D365SCommand.html">C1D365SCommand</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.idbcommand">IDbCommand</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iasyncdisposable">IAsyncDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.DataConnector.AdoNet.html">C1.DataConnector.AdoNet</a></h6>
  <h6><strong>Assembly</strong>: C1.AdoNet.D365S.dll</h6>
  <h5 id="C1_DataConnector_AdoNet_DbCommandWrap_3_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt; : DbCommand, IComponent, IDbCommand, IDisposable, IAsyncDisposable where TInnerConnection : DbConnection, new() where TInnerCommand : DbCommand, new() where TInnerParameter : DbParameter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class DbCommandWrap(Of TInnerConnection As {DbConnection, New}, TInnerCommand As {DbCommand, New}, TInnerParameter As DbParameter)
    Inherits DbCommand
    Implements IComponent, IDbCommand, IDisposable, IAsyncDisposable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TInnerConnection</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="parametername">TInnerCommand</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="parametername">TInnerParameter</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3__ctor" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.#ctor">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.-ctor.html#C1_DataConnector_AdoNet_DbCommandWrap_3__ctor">DbCommandWrap()</a>
        </td>
        <td class="markdown level1 summary"><p>The default constructor of <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.html">DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3__ctor_C1_DataConnector_AdoNet_DbConnectionWrap__0__1__2__" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.#ctor(C1.DataConnector.AdoNet.DbConnectionWrap{`0,`1,`2})">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.-ctor.html#C1_DataConnector_AdoNet_DbCommandWrap_3__ctor_C1_DataConnector_AdoNet_DbConnectionWrap__0__1__2__">DbCommandWrap(DbConnectionWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>The constructor of <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.html">DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;</a>
given a <a class="xref" href="C1.DataConnector.AdoNet.DbConnectionWrap-3.html">DbConnectionWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_Logger" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.Logger">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.Logger.html">Logger</a>
        </td>
        <td class="markdown level1 summary"><p>The logger where the runtime messages are passed to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_CommandText" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.CommandText">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.CommandText.html#C1_DataConnector_AdoNet_DbCommandWrap_3_CommandText">CommandText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text command to run against the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_CommandTimeout" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.CommandTimeout">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.CommandTimeout.html#C1_DataConnector_AdoNet_DbCommandWrap_3_CommandTimeout">CommandTimeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the wait time before terminating the attempt to execute a command and generating an error.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_CommandType" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.CommandType">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.CommandType.html#C1_DataConnector_AdoNet_DbCommandWrap_3_CommandType">CommandType</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates or specifies how the <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.CommandText.html#C1_DataConnector_AdoNet_DbCommandWrap_3_CommandText">CommandText</a> property is interpreted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_DbConnection" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.DbConnection">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.DbConnection.html#C1_DataConnector_AdoNet_DbCommandWrap_3_DbConnection">DbConnection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the System.Data.Common.DbConnection used by this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand">DbCommand</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_DbParameterCollection" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.DbParameterCollection">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.DbParameterCollection.html#C1_DataConnector_AdoNet_DbCommandWrap_3_DbParameterCollection">DbParameterCollection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbparameter">DbParameter</a> objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_DbTransaction" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.DbTransaction">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.DbTransaction.html#C1_DataConnector_AdoNet_DbCommandWrap_3_DbTransaction">DbTransaction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.DbTransaction.html#C1_DataConnector_AdoNet_DbCommandWrap_3_DbTransaction">DbTransaction</a> within which this System.Data.Common.DbCommand object executes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_DesignTimeVisible" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.DesignTimeVisible">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.DesignTimeVisible.html#C1_DataConnector_AdoNet_DbCommandWrap_3_DesignTimeVisible">DesignTimeVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the command object should be visible in a customized interface control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_Parameters" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.Parameters">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.Parameters.html#C1_DataConnector_AdoNet_DbCommandWrap_3_Parameters">Parameters</a>
        </td>
        <td class="markdown level1 summary"><p>The Parameters list of this command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ParentConnection" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ParentConnection">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ParentConnection.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ParentConnection">ParentConnection</a>
        </td>
        <td class="markdown level1 summary"><p>The connection used by this <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.html">DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_UnderlyingCommand" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.UnderlyingCommand">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.UnderlyingCommand.html#C1_DataConnector_AdoNet_DbCommandWrap_3_UnderlyingCommand">UnderlyingCommand</a>
        </td>
        <td class="markdown level1 summary"><p>The underlying command used by this <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.html">DbCommandWrap&lt;TInnerConnection, TInnerCommand, TInnerParameter&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_UpdatedRowSource" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.UpdatedRowSource">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.UpdatedRowSource.html#C1_DataConnector_AdoNet_DbCommandWrap_3_UpdatedRowSource">UpdatedRowSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how command results are applied to the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datarow">DataRow</a> when used by the Update method of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdataadapter">DbDataAdapter</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_Cancel" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.Cancel">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.Cancel.html#C1_DataConnector_AdoNet_DbCommandWrap_3_Cancel">Cancel()</a>
        </td>
        <td class="markdown level1 summary"><p>Attempts to cancel the execution of this command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ConvertDbDataReader_System_Data_Common_DbDataReader_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ConvertDbDataReader(System.Data.Common.DbDataReader)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ConvertDbDataReader.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ConvertDbDataReader_System_Data_Common_DbDataReader_">ConvertDbDataReader(DbDataReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Convert a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdatareader">DbDataReader</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_CreateDbParameter" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.CreateDbParameter">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.CreateDbParameter.html#C1_DataConnector_AdoNet_DbCommandWrap_3_CreateDbParameter">CreateDbParameter()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a new instance of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbparameter">DbParameter</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_CreateInnerCommand__0_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.CreateInnerCommand(`0)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.CreateInnerCommand.html#C1_DataConnector_AdoNet_DbCommandWrap_3_CreateInnerCommand__0_">CreateInnerCommand(TInnerConnection)</a>
        </td>
        <td class="markdown level1 summary"><p>Create a inner command related to an inner connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_Dispose_System_Boolean_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.Dispose(System.Boolean)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.Dispose.html#C1_DataConnector_AdoNet_DbCommandWrap_3_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Disposes the resources of this command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReader_System_Data_CommandBehavior_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteDbDataReader(System.Data.CommandBehavior)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteDbDataReader.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReader_System_Data_CommandBehavior_">ExecuteDbDataReader(CommandBehavior)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the command text against the connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReaderAsync_System_Data_CommandBehavior_System_Threading_CancellationToken_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteDbDataReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteDbDataReaderAsync.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReaderAsync_System_Data_CommandBehavior_System_Threading_CancellationToken_">ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>An asynchronous version of method ExecuteDbDataReader that executes the command text against the connection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteNonQuery" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteNonQuery">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteNonQuery.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteNonQuery">ExecuteNonQuery()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes an SQL statement against a connection object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteNonQueryAsync_System_Threading_CancellationToken_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteNonQueryAsync(System.Threading.CancellationToken)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteNonQueryAsync.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteNonQueryAsync_System_Threading_CancellationToken_">ExecuteNonQueryAsync(CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>An asynchronous version of <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteNonQuery.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteNonQuery">ExecuteNonQuery()</a>, which executes a SQL statement against a connection object.
Invokes <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteNonQueryAsync.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteNonQueryAsync_System_Threading_CancellationToken_">ExecuteNonQueryAsync(CancellationToken)</a> with <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken.none">None</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteScalar" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteScalar">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteScalar.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteScalar">ExecuteScalar()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the query and returns the first column of the first row in the result set returned by the query.
All other columns and rows are ignored.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteScalarAsync_System_Threading_CancellationToken_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteScalarAsync(System.Threading.CancellationToken)">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteScalarAsync.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteScalarAsync_System_Threading_CancellationToken_">ExecuteScalarAsync(CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>An asynchronous version of <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteScalar.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteScalar">ExecuteScalar()</a>, which executes the query and returns the first column of the first row in the result
set returned by the query. All other columns and rows are ignored. Invokes <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteScalarAsync.html#C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteScalarAsync_System_Threading_CancellationToken_">ExecuteScalarAsync(CancellationToken)</a>
with <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken.none">None</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_AdoNet_DbCommandWrap_3_Prepare" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.Prepare">
          <a class="xref" href="C1.DataConnector.AdoNet.DbCommandWrap-3.Prepare.html#C1_DataConnector_AdoNet_DbCommandWrap_3_Prepare">Prepare()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a prepared (or compiled) version of the command on the data source.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
