# C1.Data.DataExtensions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Data_DataExtensions" data-uid="C1.Data.DataExtensions" class="text-break">DataExtensions Class
</h1>
  <div class="markdown level0 summary"><p>Extension methods provided by Studio for Entity Framework.</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">DataExtensions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Data.html">C1.Data</a></h6>
  <h6><strong>Assembly</strong>: C1.Data.Entity.4.8.dll</h6>
  <h5 id="C1_Data_DataExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class DataExtensions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module DataExtensions</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_Data_DataExtensions_ExecuteIn__1_System_Collections_Generic_IEnumerable___0__C1_Data_ClientScope_" data-uid="C1.Data.DataExtensions.ExecuteIn``1(System.Collections.Generic.IEnumerable{``0},C1.Data.ClientScope)">
          <a class="xref" href="C1.Data.DataExtensions.ExecuteIn.html#C1_Data_DataExtensions_ExecuteIn__1_System_Collections_Generic_IEnumerable___0__C1_Data_ClientScope_">ExecuteIn&lt;T&gt;(IEnumerable&lt;T&gt;, ClientScope)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a <code class="paramref">query</code> in a <code class="paramref">scope</code>, so the loaded entities are pinned to the <code class="paramref">scope</code> (marked as needed)
by calling <a class="xref" href="C1.Data.ClientScope.AddRef.html#C1_Data_ClientScope_AddRef_System_Object_">AddRef(object)</a> for each of them.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
