# C1.Web.Mvc.BaseODataCollectionViewService-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_BaseODataCollectionViewService_1" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1" class="text-break">BaseODataCollectionViewService&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines the base class for the collectionview used to bind OData service.</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="C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><span class="xref">Service</span></div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.BaseCollectionViewService-1.html">BaseCollectionViewService</a>&lt;T&gt;</div>
    <div class="level4"><span class="xref">BaseODataCollectionViewService&lt;T&gt;</span></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService&lt;T&gt;</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.ODataVirtualCollectionViewService-1.html">ODataVirtualCollectionViewService&lt;T&gt;</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
    <div><a class="xref" href="C1.Web.Mvc.IItemsSource-1.html">IItemsSource</a>&lt;T&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_BaseODataCollectionViewService_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class BaseODataCollectionViewService&lt;T&gt; : BaseCollectionViewService&lt;T&gt;, IHtmlContent, ITemplate, IItemsSource&lt;T&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class BaseODataCollectionViewService(Of T)
    Inherits BaseCollectionViewService(Of T)
    Implements IHtmlContent, ITemplate, IItemsSource(Of T)</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <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_Web_Mvc_BaseODataCollectionViewService_1__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper)">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.-ctor.html#C1_Web_Mvc_BaseODataCollectionViewService_1__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_">BaseODataCollectionViewService(IHtmlHelper)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.html">BaseODataCollectionViewService&lt;T&gt;</a> instance.</p>
</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_Web_Mvc_BaseODataCollectionViewService_1_DataTypes" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.DataTypes">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.DataTypes.html#C1_Web_Mvc_BaseODataCollectionViewService_1_DataTypes">DataTypes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an object to be used as a map for coercing data types when loading the data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_Expand" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.Expand">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.Expand.html#C1_Web_Mvc_BaseODataCollectionViewService_1_Expand">Expand</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a string that specifies whether related entities should be included in the return data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_Fields" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.Fields">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.Fields.html#C1_Web_Mvc_BaseODataCollectionViewService_1_Fields">Fields</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an array containing the names of the fields to retrieve from the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_FilterDefinition" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.FilterDefinition">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.FilterDefinition.html#C1_Web_Mvc_BaseODataCollectionViewService_1_FilterDefinition">FilterDefinition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a string containing an OData filter specification to be used for filtering the data on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_InferDataTypes" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.InferDataTypes">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.InferDataTypes.html#C1_Web_Mvc_BaseODataCollectionViewService_1_InferDataTypes">InferDataTypes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether fields that contain strings that look like standard date representations should be converted to dates automatically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_JsonReviver" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.JsonReviver">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.JsonReviver.html#C1_Web_Mvc_BaseODataCollectionViewService_1_JsonReviver">JsonReviver</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a custom reviver function to use when parsing JSON values returned from the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_Keys" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.Keys">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.Keys.html#C1_Web_Mvc_BaseODataCollectionViewService_1_Keys">Keys</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an array containing the names of the key fields. Key fields are required for update operations (add/remove/delete).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.ODataVersion">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.ODataVersion.html#C1_Web_Mvc_BaseODataCollectionViewService_1_ODataVersion">ODataVersion</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the OData version used by the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_OnClientError" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.OnClientError">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.OnClientError.html#C1_Web_Mvc_BaseODataCollectionViewService_1_OnClientError">OnClientError</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when there is an error reading or writing data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_OnClientLoaded" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.OnClientLoaded">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.OnClientLoaded.html#C1_Web_Mvc_BaseODataCollectionViewService_1_OnClientLoaded">OnClientLoaded</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.html">BaseODataCollectionViewService&lt;T&gt;</a> finishes loading data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_OnClientLoading" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.OnClientLoading">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.OnClientLoading.html#C1_Web_Mvc_BaseODataCollectionViewService_1_OnClientLoading">OnClientLoading</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.html">BaseODataCollectionViewService&lt;T&gt;</a> starts loading data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_PageSize" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.PageSize">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.PageSize.html#C1_Web_Mvc_BaseODataCollectionViewService_1_PageSize">PageSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the page size. 0 means to disable paging.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_RequestHeaders" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.RequestHeaders">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.RequestHeaders.html#C1_Web_Mvc_BaseODataCollectionViewService_1_RequestHeaders">RequestHeaders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an object containing request headers to be used when sending or requesting data. The most typical use for this property is in scenarios where authentication is required.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_ServiceUrl" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.ServiceUrl">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.ServiceUrl.html#C1_Web_Mvc_BaseODataCollectionViewService_1_ServiceUrl">ServiceUrl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the url of the OData service.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_TableName" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.TableName">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.TableName.html#C1_Web_Mvc_BaseODataCollectionViewService_1_TableName">TableName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the table (entity) that this collection is bound to.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_BaseODataCollectionViewService_1_UniqueId" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.UniqueId">
          <a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.UniqueId.html#C1_Web_Mvc_BaseODataCollectionViewService_1_UniqueId">UniqueId</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides to remove this attribute.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
