# C1.Data.Entities.EntityViewSource

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Data_Entities_EntityViewSource" data-uid="C1.Data.Entities.EntityViewSource" class="text-break">EntityViewSource Class
</h1>
  <div class="markdown level0 summary"><p>An Entity Framework-specific version of the <a class="xref" href="C1.Data.DataSource.ClientViewSource.html">ClientViewSource</a> class.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="C1.Data.DataSource.ClientViewSource.html">ClientViewSource</a></div>
    <div class="level4"><span class="xref">EntityViewSource</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Data.Entities.html">C1.Data.Entities</a></h6>
  <h6><strong>Assembly</strong>: C1.Data.Entity.4.8.dll</h6>
  <h5 id="C1_Data_Entities_EntityViewSource_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class EntityViewSource : ClientViewSource, INotifyPropertyChanged, ISupportInitialize</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class EntityViewSource
    Inherits ClientViewSource
    Implements INotifyPropertyChanged, ISupportInitialize</code></pre>
  </div>
  <h5 id="C1_Data_Entities_EntityViewSource_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>To load data, specify the <a class="xref" href="C1.Data.Entities.EntityViewSource.EntitySetName.html#C1_Data_Entities_EntityViewSource_EntitySetName">name</a>
of an System.Data.Metadata.Edm.EntitySet to load the data from.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_Entities_EntityViewSource__ctor" data-uid="C1.Data.Entities.EntityViewSource.#ctor">
          <a class="xref" href="C1.Data.Entities.EntityViewSource.-ctor.html#C1_Data_Entities_EntityViewSource__ctor">EntityViewSource()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Data_Entities_EntityViewSource_EntitySetName" data-uid="C1.Data.Entities.EntityViewSource.EntitySetName">
          <a class="xref" href="C1.Data.Entities.EntityViewSource.EntitySetName.html#C1_Data_Entities_EntityViewSource_EntitySetName">EntitySetName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the System.Data.Metadata.Edm.EntitySet to load entities from.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_Entities_EntityViewSource_Name" data-uid="C1.Data.Entities.EntityViewSource.Name">
          <a class="xref" href="C1.Data.Entities.EntityViewSource.Name.html#C1_Data_Entities_EntityViewSource_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a name of this <a class="xref" href="C1.Data.Entities.EntityViewSource.html">EntityViewSource</a> to reference it in a C1DataSource.ViewSources collection.
It is determined by the <a class="xref" href="C1.Data.Entities.EntityViewSource.EntitySetName.html#C1_Data_Entities_EntityViewSource_EntitySetName">EntitySetName</a> but can be overrided by the <a class="xref" href="C1.Data.DataSource.ClientViewSource.NameOverride.html#C1_Data_DataSource_ClientViewSource_NameOverride">NameOverride</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
