# C1.Data.Entities.EntityClientCache.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Data_Entities_EntityClientCache__ctor_" data-uid="C1.Data.Entities.EntityClientCache.#ctor*">EntityClientCache Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Data_Entities_EntityClientCache__ctor_" data-uid="C1.Data.Entities.EntityClientCache.#ctor*"></a>
<h4 id="C1_Data_Entities_EntityClientCache__ctor_System_Data_Entity_DbContext_" data-uid="C1.Data.Entities.EntityClientCache.#ctor(System.Data.Entity.DbContext)">EntityClientCache(DbContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Data.Entities.EntityClientCache.html">EntityClientCache</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public EntityClientCache(DbContext baseContext)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseContext As DbContext)</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><span class="xref">DbContext</span></td>
      <td><span class="parametername">baseContext</span></td>
      <td><p>The <a class="xref" href="C1.Data.Entities.EntityClientCache.DbContext.html#C1_Data_Entities_EntityClientCache_DbContext">object context</a> that is used to access the data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Data_Entities_EntityClientCache__ctor_" data-uid="C1.Data.Entities.EntityClientCache.#ctor*"></a>
<h4 id="C1_Data_Entities_EntityClientCache__ctor_System_Data_Entity_Core_Objects_ObjectContext_" data-uid="C1.Data.Entities.EntityClientCache.#ctor(System.Data.Entity.Core.Objects.ObjectContext)">EntityClientCache(ObjectContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Data.Entities.EntityClientCache.html">EntityClientCache</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public EntityClientCache(ObjectContext baseContext)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(baseContext As ObjectContext)</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><span class="xref">ObjectContext</span></td>
      <td><span class="parametername">baseContext</span></td>
      <td><p>The <a class="xref" href="C1.Data.Entities.EntityClientCache.ObjectContext.html#C1_Data_Entities_EntityClientCache_ObjectContext">object context</a> that is used to access the data.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
