Section navigation

Public classSealed LeanQueryable<TDocument>

Namespace
Rowles.LeanCorpus.Linq
Assembly
Rowles.LeanCorpus.dll

LINQ queryable over a LeanCorpus index. Construct directly or obtain via the source-generator-emitted AsQueryable(IndexSearcher) method.

public sealed class LeanQueryable<TDocument> : IOrderedQueryable<TDocument>, IOrderedQueryable, IQueryable<TDocument>, IEnumerable<TDocument>, IQueryable, IEnumerable

Type Parameters

TDocument

The mapped document model type.

Inheritance
LeanQueryable<TDocument>
Implements
IQueryable<TDocument>
IEnumerable<TDocument>

Public constructor LeanQueryable(IndexSearcher, LeanDocumentMap<TDocument>, Func<string, IFieldDescriptor?>?)

Initialises a new LeanQueryable<TDocument>.

Public constructor LeanQueryable(IndexSearcher, LeanDocumentMap<TDocument>, Func<string, IFieldDescriptor?>?, SearchOptions?)

Initialises a new LeanQueryable<TDocument> with optional SearchOptions for timeout, cancellation, and result budget.

Public property ElementType

Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.

Public property Expression

Gets the expression tree that is associated with the instance of IQueryable.

Public property Provider

Gets the query provider that is associated with this data source.

Public method GetEnumerator()

Returns an enumerator that iterates through the collection.