# C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1" class="text-break">ODataCollectionViewServiceBuilder&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService&lt;T&gt;</a>.</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">HideObjectMembers</span></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Fluent.BaseBuilder-2.html">BaseBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService</a>&lt;T&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder</a>&lt;T&gt;&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService</a>&lt;T&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder</a>&lt;T&gt;&gt;</div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ServiceBuilder-2.html">ServiceBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService</a>&lt;T&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder</a>&lt;T&gt;&gt;</div>
    <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.BaseCollectionViewServiceBuilder-3.html">BaseCollectionViewServiceBuilder</a>&lt;T, <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService</a>&lt;T&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder</a>&lt;T&gt;&gt;</div>
    <div class="level6"><a class="xref" href="C1.Web.Mvc.Fluent.BaseODataCollectionViewServiceBuilder-3.html">BaseODataCollectionViewServiceBuilder</a>&lt;T, <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.html">ODataCollectionViewService</a>&lt;T&gt;, <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder</a>&lt;T&gt;&gt;</div>
    <div class="level7"><span class="xref">ODataCollectionViewServiceBuilder&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.Fluent.ITemplateBuilder-1.html">ITemplateBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder</a>&lt;T&gt;&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Fluent.html">C1.Web.Mvc.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ODataCollectionViewServiceBuilder&lt;T&gt; : BaseODataCollectionViewServiceBuilder&lt;T, ODataCollectionViewService&lt;T&gt;, ODataCollectionViewServiceBuilder&lt;T&gt;&gt;, IHtmlContent, ITemplateBuilder&lt;ODataCollectionViewServiceBuilder&lt;T&gt;&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ODataCollectionViewServiceBuilder(Of T)
    Inherits BaseODataCollectionViewServiceBuilder(Of T, ODataCollectionViewService(Of T), ODataCollectionViewServiceBuilder(Of T))
    Implements IHtmlContent, ITemplateBuilder(Of ODataCollectionViewServiceBuilder(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_Fluent_ODataCollectionViewServiceBuilder_1__ctor_C1_Web_Mvc_ODataCollectionViewService__0__" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.#ctor(C1.Web.Mvc.ODataCollectionViewService{`0})">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.-ctor.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1__ctor_C1_Web_Mvc_ODataCollectionViewService__0__">ODataCollectionViewServiceBuilder(ODataCollectionViewService&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.html">ODataCollectionViewServiceBuilder&lt;T&gt;</a> instance to configurate <code class="paramref">component</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_Aggregates_System_String_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.Aggregates(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.Aggregates.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_Aggregates_System_String_">Aggregates(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.Aggregates.html#C1_Web_Mvc_ODataCollectionViewService_1_Aggregates">Aggregates</a>.
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_Fluent_ODataCollectionViewServiceBuilder_1_DeferCommits_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.DeferCommits(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.DeferCommits.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_DeferCommits_System_Boolean_">DeferCommits(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.DeferCommits.html#C1_Web_Mvc_ODataCollectionViewService_1_DeferCommits">DeferCommits</a>.
Sets a value that causes the ODataCollectionView to defer commits back to the database.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_FilterOnServer_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.FilterOnServer(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.FilterOnServer.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_FilterOnServer_System_Boolean_">FilterOnServer(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.FilterOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_FilterOnServer">FilterOnServer</a>.
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_Fluent_ODataCollectionViewServiceBuilder_1_GroupLazyLoading_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.GroupLazyLoading(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.GroupLazyLoading.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_GroupLazyLoading_System_Boolean_">GroupLazyLoading(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.GroupLazyLoading.html#C1_Web_Mvc_ODataCollectionViewService_1_GroupLazyLoading">GroupLazyLoading</a>.
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_Fluent_ODataCollectionViewServiceBuilder_1_GroupOnServer_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.GroupOnServer(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.GroupOnServer.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_GroupOnServer_System_Boolean_">GroupOnServer(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.GroupOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_GroupOnServer">GroupOnServer</a>.
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_Fluent_ODataCollectionViewServiceBuilder_1_PageOnServer_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.PageOnServer(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.PageOnServer.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_PageOnServer_System_Boolean_">PageOnServer(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.PageOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_PageOnServer">PageOnServer</a>.
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_Fluent_ODataCollectionViewServiceBuilder_1_SortOnServer_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder`1.SortOnServer(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ODataCollectionViewServiceBuilder-1.SortOnServer.html#C1_Web_Mvc_Fluent_ODataCollectionViewServiceBuilder_1_SortOnServer_System_Boolean_">SortOnServer(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.ODataCollectionViewService-1.SortOnServer.html#C1_Web_Mvc_ODataCollectionViewService_1_SortOnServer">SortOnServer</a>.
Sets a value that determines whether sort operations should be performed on the server or on the client.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
