# C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.AddDataSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Api_DataEngine_Data_FlexPivotEngineProviderManager_AddDataSource_" data-uid="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.AddDataSource*">AddDataSource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Api_DataEngine_Data_FlexPivotEngineProviderManager_AddDataSource_" data-uid="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.AddDataSource*"></a>
<h4 id="C1_Web_Api_DataEngine_Data_FlexPivotEngineProviderManager_AddDataSource_System_String_System_Func_System_Collections_IEnumerable__" data-uid="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.AddDataSource(System.String,System.Func{System.Collections.IEnumerable})">AddDataSource(string, Func&lt;IEnumerable&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a DataSource data from an arbitrary IEnumerable.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FlexPivotEngineProviderManager AddDataSource(string name, Func&lt;IEnumerable&gt; dataSourceGetter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddDataSource(name As String, dataSourceGetter As Func(Of IEnumerable)) As FlexPivotEngineProviderManager</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The unique value used to stand for the data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a>&gt;</td>
      <td><span class="parametername">dataSourceGetter</span></td>
      <td><p>A function used to return the arbitrary IEnumerable.</p>
</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="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.html">FlexPivotEngineProviderManager</a></td>
      <td><p>The flex pivot engine provider manager.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Api_DataEngine_Data_FlexPivotEngineProviderManager_AddDataSource_" data-uid="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.AddDataSource*"></a>
<h4 id="C1_Web_Api_DataEngine_Data_FlexPivotEngineProviderManager_AddDataSource_System_String_System_Collections_IEnumerable_" data-uid="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.AddDataSource(System.String,System.Collections.IEnumerable)">AddDataSource(string, IEnumerable)</h4>
<div class="markdown level1 summary"><p>Adds a DataSource data from an arbitrary IEnumerable.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FlexPivotEngineProviderManager AddDataSource(string name, IEnumerable dataSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddDataSource(name As String, dataSource As IEnumerable) As FlexPivotEngineProviderManager</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The unique value used to stands for the data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>The arbitrary IEnumerable.</p>
</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="C1.Web.Api.DataEngine.Data.FlexPivotEngineProviderManager.html">FlexPivotEngineProviderManager</a></td>
      <td><p>The flex pivot engine provider manager.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
