# C1.Web.Mvc.ODataCollectionViewService-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_ODataCollectionViewService_1" data-uid="C1.Web.Mvc.ODataCollectionViewService`1" class="text-break">ODataCollectionViewService&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"></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"><a class="xref" href="C1.Web.Mvc.BaseODataCollectionViewService-1.html">BaseODataCollectionViewService</a>&lt;T&gt;</div>
    <div class="level5"><span class="xref">ODataCollectionViewService&lt;T&gt;</span></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_ODataCollectionViewService_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ODataCollectionViewService&lt;T&gt; : BaseODataCollectionViewService&lt;T&gt;, IHtmlContent, ITemplate, IItemsSource&lt;T&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ODataCollectionViewService(Of T)
    Inherits BaseODataCollectionViewService(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="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_ODataCollectionViewService_1_Aggregates" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.Aggregates">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.Aggregates.html#C1_Web_Mvc_ODataCollectionViewService_1_Aggregates">Aggregates</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the aggregates query parsed by the OData API which returns the aggregates as result. This property should be set when GroupOnServer is true and groupDescriptions are defined. The format follows OData AggregationMethods specification.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ODataCollectionViewService_1_DeferCommits" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.DeferCommits">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.DeferCommits.html#C1_Web_Mvc_ODataCollectionViewService_1_DeferCommits">DeferCommits</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that causes the ODataCollectionView to defer commits back to the database.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ODataCollectionViewService_1_FilterOnServer" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.FilterOnServer">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.FilterOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_FilterOnServer">FilterOnServer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether filtering should be performed on the server or on the client.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ODataCollectionViewService_1_GroupLazyLoading" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.GroupLazyLoading">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.GroupLazyLoading.html#C1_Web_Mvc_ODataCollectionViewService_1_GroupLazyLoading">GroupLazyLoading</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the group data should be loaded on demand or all at once. The default value is false and should be set to true only when GroupOnServer is set to true.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ODataCollectionViewService_1_GroupOnServer" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.GroupOnServer">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.GroupOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_GroupOnServer">GroupOnServer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether grouping should be performed on the server or on the client. This property should be set to true only when OData API supports aggregation using the Apply query option.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ODataCollectionViewService_1_PageOnServer" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.PageOnServer">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.PageOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_PageOnServer">PageOnServer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether paging should be performed on the server or on the client.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ODataCollectionViewService_1_SortOnServer" data-uid="C1.Web.Mvc.ODataCollectionViewService`1.SortOnServer">
          <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.SortOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_SortOnServer">SortOnServer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether sort operations should be performed on the server or on the client.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
