# C1.LiveLinq.Hints

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_LiveLinq_Hints" data-uid="C1.LiveLinq.Hints" class="text-break">Hints Class
</h1>
  <div class="markdown level0 summary"><p>Provides a static (extension) method used as a hint that can be applied to an expression (usually, a property) in a query.</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">Hints</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.LiveLinq.html">C1.LiveLinq</a></h6>
  <h6><strong>Assembly</strong>: C1.LiveLinq.4.8.dll</h6>
  <h5 id="C1_LiveLinq_Hints_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class Hints</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module Hints</code></pre>
  </div>
  <h5 id="C1_LiveLinq_Hints_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>A hint does not change the value of the expression it is applied to,
it only tells LiveLinq to create and use an index on that property, if possible.</p>
<p><b>Note: </b>Hints can only be used in indexed queries (with <b>AsIndexed()</b> extension method).
Using them in live views (with <b>AsLive()</b> extension method) will result in an exception.</p>
See <span style="C1H Jump">How to create indexes</span>.
</div>
  <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_LiveLinq_Hints_DefaultAction" data-uid="C1.LiveLinq.Hints.DefaultAction">
          <a class="xref" href="C1.LiveLinq.Hints.DefaultAction.html#C1_LiveLinq_Hints_DefaultAction">DefaultAction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the default action for indexing hints.</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_LiveLinq_Hints_Indexed__1___0_" data-uid="C1.LiveLinq.Hints.Indexed``1(``0)">
          <a class="xref" href="C1.LiveLinq.Hints.Indexed.html#C1_LiveLinq_Hints_Indexed__1___0_">Indexed&lt;T&gt;(T)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint with default action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_LiveLinq_Hints_Indexed__1___0_C1_LiveLinq_IndexingHintAction_" data-uid="C1.LiveLinq.Hints.Indexed``1(``0,C1.LiveLinq.IndexingHintAction)">
          <a class="xref" href="C1.LiveLinq.Hints.Indexed.html#C1_LiveLinq_Hints_Indexed__1___0_C1_LiveLinq_IndexingHintAction_">Indexed&lt;T&gt;(T, IndexingHintAction)</a>
        </td>
        <td class="markdown level1 summary"><p>A hint with specified action.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
