# C1.EntityFrameworkCore.CSV.CSVOptionsExtension.ApplyServices

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension_ApplyServices_" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.ApplyServices*">ApplyServices Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension_ApplyServices_" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.ApplyServices*"></a>
<h4 id="C1_EntityFrameworkCore_CSV_CSVOptionsExtension_ApplyServices_Microsoft_Extensions_DependencyInjection_IServiceCollection_" data-uid="C1.EntityFrameworkCore.CSV.CSVOptionsExtension.ApplyServices(Microsoft.Extensions.DependencyInjection.IServiceCollection)">ApplyServices(IServiceCollection)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void ApplyServices(IServiceCollection services)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub ApplyServices(services As IServiceCollection)</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/microsoft.extensions.dependencyinjection.iservicecollection">IServiceCollection</a></td>
      <td><span class="parametername">services</span></td>
      <td><p>The collection to add services to.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
