# C1.EntityFrameworkCore.CSV.CSVOptionsExtension

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension" class="text-break">CSVOptionsExtension Class
</h1>
  <div class="markdown level0 summary"><p>Represents options managed by the relational database providers. These options
are set using <span class="xref">Microsoft.EntityFrameworkCore.DbContextOptionsBuilder</span>.
Instances of this class are designed to be immutable. To change an option, call
one of the 'With...' methods to obtain a new instance with the option changed.</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">CSVOptionsExtension</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.EntityFrameworkCore.CSV.html">C1.EntityFrameworkCore.CSV</a></h6>
  <h6><strong>Assembly</strong>: C1.EntityFrameworkCore.CSV.dll</h6>
  <h5 id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CSVOptionsExtension : RelationalOptionsExtension</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CSVOptionsExtension
    Inherits RelationalOptionsExtension</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_CSV_CSVOptionsExtension__ctor" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.#ctor">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.-ctor.html#C1_EntityFrameworkCore_CSV_CSVOptionsExtension__ctor">CSVOptionsExtension()</a>
        </td>
        <td class="markdown level1 summary"><p>Create <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.html">CSVOptionsExtension</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension__ctor_C1_EntityFrameworkCore_CSV_CSVOptionsExtension_" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.#ctor(C1.EntityFrameworkCore.CSV.CSVOptionsExtension)">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.-ctor.html#C1_EntityFrameworkCore_CSV_CSVOptionsExtension__ctor_C1_EntityFrameworkCore_CSV_CSVOptionsExtension_">CSVOptionsExtension(CSVOptionsExtension)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by a derived class constructor when implementing the <span class="xref">Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension.Clone</span> mehtod.</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_EntityFrameworkCore_CSV_CSVOptionsExtension_Info" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.Info">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.Info.html#C1_EntityFrameworkCore_CSV_CSVOptionsExtension_Info">Info</a>
        </td>
        <td class="markdown level1 summary"><p>Information/metadata about the extension.</p>
</td>
      </tr>
      <tr>
        <td id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension_MinBatchSize" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.MinBatchSize">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.MinBatchSize.html#C1_EntityFrameworkCore_CSV_CSVOptionsExtension_MinBatchSize">MinBatchSize</a>
        </td>
        <td class="markdown level1 summary"><p>Set the minimum of the batch is 1.</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_CSV_CSVOptionsExtension_ApplyServices_Microsoft_Extensions_DependencyInjection_IServiceCollection_" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.ApplyServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.ApplyServices.html#C1_EntityFrameworkCore_CSV_CSVOptionsExtension_ApplyServices_Microsoft_Extensions_DependencyInjection_IServiceCollection_">ApplyServices(IServiceCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the services required to make the selected options work. This is used when
there is no external <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iserviceprovider">IServiceProvider</a> and EF is maintaining its own service
provider internally. This allows database providers (and other extensions) to
register their required services when EF is creating an service provider.</p>
</td>
      </tr>
      <tr>
        <td id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension_Clone" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.Clone">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.Clone.html#C1_EntityFrameworkCore_CSV_CSVOptionsExtension_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Clone <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.html">CSVOptionsExtension</a> instance.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
