# C1.EntityFrameworkCore.CSV.CSVServiceCollectionExtensions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_EntityFrameworkCore_CSV_CSVServiceCollectionExtensions" data-uid="C1.EntityFrameworkCore.CSV.CSVServiceCollectionExtensions" class="text-break">CSVServiceCollectionExtensions Class
</h1>
  <div class="markdown level0 summary"><p>CSV specific extension methods for <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection">IServiceCollection</a>.</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">CSVServiceCollectionExtensions</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_CSVServiceCollectionExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class CSVServiceCollectionExtensions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module CSVServiceCollectionExtensions</code></pre>
  </div>
  <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_CSVServiceCollectionExtensions_AddEntityFrameworkCSV_Microsoft_Extensions_DependencyInjection_IServiceCollection_" data-uid="C1.EntityFrameworkCore.CSV.CSVServiceCollectionExtensions.AddEntityFrameworkCSV(Microsoft.Extensions.DependencyInjection.IServiceCollection)">
          <a class="xref" href="C1.EntityFrameworkCore.CSV.CSVServiceCollectionExtensions.AddEntityFrameworkCSV.html#C1_EntityFrameworkCore_CSV_CSVServiceCollectionExtensions_AddEntityFrameworkCSV_Microsoft_Extensions_DependencyInjection_IServiceCollection_">AddEntityFrameworkCSV(IServiceCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>
     Adds the services required by the CSV database provider for Entity Framework
     to an <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection">IServiceCollection</a>. You use this method when using dependency injection
     in your application, such as with ASP.NET. For more information on setting up dependency
     injection, see http://go.microsoft.com/fwlink/?LinkId=526890.
 </p>
<p>
     You only need to use this functionality when you want Entity Framework to resolve the services it uses
     from an external dependency injection container. If you are not using an external
     dependency injection container, Entity Framework will take care of creating the services it requires.
 </p>
</td>
      </tr>
    </tbody>
  </table>

</div>
