# C1.EntityFrameworkCore.Update.ModificationCommandBatchBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_EntityFrameworkCore_Update_ModificationCommandBatchBase" data-uid="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase" class="text-break">ModificationCommandBatchBase Class
</h1>
  <div class="markdown level0 summary"><p>A <span class="xref">Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch</span> for providers
which append an SQL query to find out how many rows were affected.
This type is typically used by database providers.</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"><span class="xref">ModificationCommandBatchBase</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.EntityFrameworkCore.Update.html">C1.EntityFrameworkCore.Update</a></h6>
  <h6><strong>Assembly</strong>: C1.EntityFrameworkCore.CSV.dll</h6>
  <h5 id="C1_EntityFrameworkCore_Update_ModificationCommandBatchBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ModificationCommandBatchBase : AffectedCountModificationCommandBatch</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ModificationCommandBatchBase
    Inherits AffectedCountModificationCommandBatch</code></pre>
  </div>
  <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_EntityFrameworkCore_Update_ModificationCommandBatchBase__ctor_Microsoft_EntityFrameworkCore_Update_ModificationCommandBatchFactoryDependencies_System_Nullable_System_Int32__" data-uid="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.#ctor(Microsoft.EntityFrameworkCore.Update.ModificationCommandBatchFactoryDependencies,System.Nullable{System.Int32})">
          <a class="xref" href="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.-ctor.html#C1_EntityFrameworkCore_Update_ModificationCommandBatchBase__ctor_Microsoft_EntityFrameworkCore_Update_ModificationCommandBatchFactoryDependencies_System_Nullable_System_Int32__">ModificationCommandBatchBase(ModificationCommandBatchFactoryDependencies, int?)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.html">ModificationCommandBatchBase</a> instance.</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_EntityFrameworkCore_Update_ModificationCommandBatchBase_ConsumeResultSetWithRowsAffectedOnly_System_Int32_Microsoft_EntityFrameworkCore_Storage_RelationalDataReader_" data-uid="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.ConsumeResultSetWithRowsAffectedOnly(System.Int32,Microsoft.EntityFrameworkCore.Storage.RelationalDataReader)">
          <a class="xref" href="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.ConsumeResultSetWithRowsAffectedOnly.html#C1_EntityFrameworkCore_Update_ModificationCommandBatchBase_ConsumeResultSetWithRowsAffectedOnly_System_Int32_Microsoft_EntityFrameworkCore_Storage_RelationalDataReader_">ConsumeResultSetWithRowsAffectedOnly(int, RelationalDataReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Consumes the data reader created by <span class="xref">Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection)</span>
without propagating values back into the <span class="xref">Microsoft.EntityFrameworkCore.Update.ModificationCommand</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_EntityFrameworkCore_Update_ModificationCommandBatchBase_IsValid" data-uid="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.IsValid">
          <a class="xref" href="C1.EntityFrameworkCore.Update.ModificationCommandBatchBase.IsValid.html#C1_EntityFrameworkCore_Update_ModificationCommandBatchBase_IsValid">IsValid()</a>
        </td>
        <td class="markdown level1 summary"><p>Validate the command text.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
