# C1.AdoNet.QuickBooksOnline.C1QuickBooksOnlineCommand.ExecuteBatchCoreAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_AdoNet_QuickBooksOnline_C1QuickBooksOnlineCommand_ExecuteBatchCoreAsync_" data-uid="C1.AdoNet.QuickBooksOnline.C1QuickBooksOnlineCommand.ExecuteBatchCoreAsync*">ExecuteBatchCoreAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_AdoNet_QuickBooksOnline_C1QuickBooksOnlineCommand_ExecuteBatchCoreAsync_" data-uid="C1.AdoNet.QuickBooksOnline.C1QuickBooksOnlineCommand.ExecuteBatchCoreAsync*"></a>
<h4 id="C1_AdoNet_QuickBooksOnline_C1QuickBooksOnlineCommand_ExecuteBatchCoreAsync_System_Collections_Generic_IList_C1_DataConnector_ISQLStatement__System_Threading_CancellationToken_" data-uid="C1.AdoNet.QuickBooksOnline.C1QuickBooksOnlineCommand.ExecuteBatchCoreAsync(System.Collections.Generic.IList{C1.DataConnector.ISQLStatement},System.Threading.CancellationToken)">ExecuteBatchCoreAsync(IList&lt;ISQLStatement&gt;, CancellationToken)</h4>
<div class="markdown level1 summary"><p>Execute a list of nonquery in Batch.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override Task&lt;int&gt; ExecuteBatchCoreAsync(IList&lt;ISQLStatement&gt; statements, CancellationToken token)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function ExecuteBatchCoreAsync(statements As IList(Of ISQLStatement), token As CancellationToken) As Task(Of Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="../C1.DataConnector/C1.DataConnector.ISQLStatement.html">ISQLStatement</a>&gt;</td>
      <td><span class="parametername">statements</span></td>
      <td><p>List of statements.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">token</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td><p>A task representing the assynchronous operation.
The generic parameter int gives the number of affected rows by the execution of this command.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1CommandBase.ExecuteBatchCoreAsync.html#C1_DataConnector_AdoNet_C1CommandBase_ExecuteBatchCoreAsync_System_Collections_Generic_IList_C1_DataConnector_ISQLStatement__System_Threading_CancellationToken_">C1CommandBase.ExecuteBatchCoreAsync(IList&lt;ISQLStatement&gt;, CancellationToken)</a></div>
</div>
