Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Fauna.Linq.IQuerySource< T > Interface Template Reference

An interface for common static IQuerySource methods that are non-generic. More...

Inheritance diagram for Fauna.Linq.IQuerySource< T >:
Fauna.Linq.QuerySource< Doc > Fauna.Linq.DataContext.ICollection Fauna.Linq.DataContext.IFunction Fauna.Linq.DataContext.IIndex Fauna.Linq.QuerySource< T > Fauna.Linq.QuerySource< T > Fauna.Linq.DataContext.Collection< Doc > Fauna.Linq.DataContext.Index< Doc > Fauna.Linq.DataContext.Collection< Doc > Fauna.Linq.DataContext.Index< Doc >

Public Member Functions

IAsyncEnumerable< Page< T > > PaginateAsync (QueryOptions? queryOptions=null, CancellationToken cancel=default)
 Executes a paginating query asynchronously and returns an enumerable of pages.
 
IAsyncEnumerable< T > ToAsyncEnumerable (CancellationToken cancel=default)
 Executes a query asynchronously.
 
IEnumerable< T > ToEnumerable ()
 Executes a query.
 
IQuerySource< T > Distinct ()
 Obtains a distinct set of results. This is evaluated server-side.
 
IQuerySource< T > Order ()
 Applies default ordering to the query. This is evaluated server-side.
 
IQuerySource< T > OrderBy< K > (Expression< Func< T, K > > keySelector)
 Orders according to the selector. This is evaluated server-side.
 
IQuerySource< T > OrderDescending ()
 Orders by descending. This is evaluated server-side.
 
IQuerySource< T > OrderByDescending< K > (Expression< Func< T, K > > keySelector)
 Orders by descending according to the selector. This is evaluated server-side.
 
IQuerySource< T > Reverse ()
 Reverses the order of the results. This is evaluated server-side.
 
IQuerySource< R > Select< R > (Expression< Func< T, R > > selector)
 Applies a projection to the query. This is evaluated server-side.
 
IQuerySource< T > Skip (int count)
 Skips the first N elements of the results. This is evaluated server-side.
 
IQuerySource< T > Take (int count)
 Takes the first N elements of the results. This is evaluated server-side.
 
IQuerySource< T > Where (Expression< Func< T, bool > > predicate)
 Applies the predicate to the query. This is evaluated server-side.
 
bool All (Expression< Func< T, bool > > predicate)
 Applies each predicate and executes the query. This is evaluated server-side.
 
Task< bool > AllAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies each predicate and executes the query asynchronously. This is evaluated server-side.
 
bool Any ()
 Determines if the result is not empty. This is evaluated server-side.
 
Task< bool > AnyAsync (CancellationToken cancel=default)
 Determines if the result is not empty asynchronously. This is evaluated server-side.
 
bool Any (Expression< Func< T, bool > > predicate)
 Applies each predicate and executes the query. This is evaluated server-side.
 
Task< bool > AnyAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies each predicate and executes the query asynchronously. This is evaluated server-side.
 
int Count ()
 Applies a count of the elements and executes the query. This is evaluated server-side.
 
Task< int > CountAsync (CancellationToken cancel=default)
 Applies a count of the elements and executes the query asynchronously. This is evaluated server-side.
 
int Count (Expression< Func< T, bool > > predicate)
 Applies the predicate, applies a count, and executes the query. This is evaluated server-side.
 
Task< int > CountAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate, applies a count, and executes the query asynchronously. This is evaluated server-side.
 
First ()
 Executes the query and obtains the first element in the result. This is evaluated server-side.
 
Task< T > FirstAsync (CancellationToken cancel=default)
 Executes the query asynchronously and obtains the first element in the result. This is evaluated server-side.
 
First (Expression< Func< T, bool > > predicate)
 Applies the predicate, executes the query, and obtains the first element in the result. This is evaluated server-side.
 
Task< T > FirstAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate, executes the query asynchronously, and obtains the first element in the result. This is evaluated server-side.
 
T? FirstOrDefault ()
 Executes the query and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.
 
Task< T?> FirstOrDefaultAsync (CancellationToken cancel=default)
 Executes the query asynchronously and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.
 
T? FirstOrDefault (Expression< Func< T, bool > > predicate)
 Applies the predicate, executes the query, and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.
 
Task< T?> FirstOrDefaultAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate, executes the query asynchronously, and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.
 
Last ()
 Executes the query and obtains the last element in the result. This is evaluated server-side.
 
Task< T > LastAsync (CancellationToken cancel=default)
 Executes the query asynchronously and obtains the last element in the result. This is evaluated server-side.
 
Last (Expression< Func< T, bool > > predicate)
 Applies the predicate, executes the query, and obtains the last element in the result. This is evaluated server-side.
 
Task< T > LastAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate, executes the query asynchronously, and obtains the last element in the result. This is evaluated server-side.
 
T? LastOrDefault ()
 Executes the query and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.
 
Task< T?> LastOrDefaultAsync (CancellationToken cancel=default)
 Executes the query asynchronously and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.
 
T? LastOrDefault (Expression< Func< T, bool > > predicate)
 Applies the predicate, executes the query and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.
 
Task< T?> LastOrDefaultAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate, executes the query asynchronously and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.
 
long LongCount ()
 Applies a count of the elements and executes the query. This is evaluated server-side.
 
Task< long > LongCountAsync (CancellationToken cancel=default)
 Applies a count of the elements and executes the query asynchronously. This is evaluated server-side.
 
long LongCount (Expression< Func< T, bool > > predicate)
 Applies the predicate, applies a count, and executes the query. This is evaluated server-side.
 
Task< long > LongCountAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate, applies a count, and executes the query asynchronously. This is evaluated server-side.
 
Max ()
 Executes a query and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.
 
Task< T > MaxAsync (CancellationToken cancel=default)
 Executes a query asynchronously and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.
 
Max< R > (Expression< Func< T, R > > selector)
 Applies a selector, executes a query, and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.
 
Task< R > MaxAsync< R > (Expression< Func< T, R > > selector, CancellationToken cancel=default)
 Applies a selector, executes a query asynchronously, and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.
 
Min ()
 Executes a query and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.
 
Task< T > MinAsync (CancellationToken cancel=default)
 Executes a query asynchronously and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.
 
Min< R > (Expression< Func< T, R > > selector)
 Applies the selector, executes the query, and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.
 
Task< R > MinAsync< R > (Expression< Func< T, R > > selector, CancellationToken cancel=default)
 Applies the selector, executes the query asynchronously, and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.
 
Single ()
 Executes the query. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.
 
Task< T > SingleAsync (CancellationToken cancel=default)
 Executes the query asynchronously. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.
 
Single (Expression< Func< T, bool > > predicate)
 Applies the predicate and executes the query. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.
 
Task< T > SingleAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate and executes the query asynchronously. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.
 
SingleOrDefault ()
 Executes the query. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.
 
Task< T > SingleOrDefaultAsync (CancellationToken cancel=default)
 Executes the query asynchronously. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.
 
SingleOrDefault (Expression< Func< T, bool > > predicate)
 Applies the predicate and executes the query. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.
 
Task< T > SingleOrDefaultAsync (Expression< Func< T, bool > > predicate, CancellationToken cancel=default)
 Applies the predicate and executes the query asynchronously. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.
 
int Sum (Expression< Func< T, int > > selector)
 Calculates the sum of values returned by a provided selector. This is evaluated server-side.
 
Task< int > SumAsync (Expression< Func< T, int > > selector, CancellationToken cancel=default)
 Asynchronously calculates the sum of values returned by a provided selector. This is evaluated server-side.
 
long Sum (Expression< Func< T, long > > selector)
 Calculates the sum of values returned by a provided selector. This is evaluated server-side.
 
Task< long > SumAsync (Expression< Func< T, long > > selector, CancellationToken cancel=default)
 Asynchronously calculates the sum of values returned by a provided selector. This is evaluated server-side.
 
double Sum (Expression< Func< T, double > > selector)
 Calculates the sum of values returned by a provided selector. This is evaluated server-side.
 
Task< double > SumAsync (Expression< Func< T, double > > selector, CancellationToken cancel=default)
 Asynchronously calculates the sum of values returned by a provided selector. This is evaluated server-side.
 
double Average (Expression< Func< T, double > > selector)
 Calculates the mean average of values returned by a provided selector. This is evaluated server-side.
 
Task< double > AverageAsync (Expression< Func< T, double > > selector, CancellationToken cancel=default)
 Asynchronously calculates the mean average of values returned by a provided selector. This is evaluated server-side.
 
List< T > ToList ()
 Executes the query and converts the results to a List<T>.
 
Task< List< T > > ToListAsync (CancellationToken cancel=default)
 Executes the query asynchronously and converts the results to a List<T>.
 
T[] ToArray ()
 Executes the query and converts the results to a T:T[].
 
Task< T[]> ToArrayAsync (CancellationToken cancel=default)
 Executes the query asynchronously and converts the results to a T:T[].
 
HashSet< T > ToHashSet ()
 Executes the query and converts the results to a HashSet<T>.
 
Task< HashSet< T > > ToHashSetAsync (CancellationToken cancel=default)
 Executes the query asynchronously and converts the results to a HashSet<T>.
 
HashSet< T > ToHashSet (IEqualityComparer< T >? comparer)
 Executes the query and converts the results to a HashSet<T>.
 
Task< HashSet< T > > ToHashSetAsync (IEqualityComparer< T >? comparer, CancellationToken cancel=default)
 Executes the query asynchronously and converts the results to a HashSet<T>.
 
Dictionary< K, V > ToDictionary< K, V > (Func< T, K > getKey, Func< T, V > getValue)
 Executes the query synchronously and converts the results to a Dictionary<K,V>.
 
Task< Dictionary< K, V > > ToDictionaryAsync< K, V > (Func< T, K > getKey, Func< T, V > getValue, CancellationToken cancel=default)
 Executes the query asynchronously and converts the results to a Dictionary<K,V>.
 
Dictionary< K, V > ToDictionary< K, V > (Func< T, K > getKey, Func< T, V > getValue, IEqualityComparer< K >? comparer)
 Executes the query synchronously and converts the results to a Dictionary<K,V>.
 
Task< Dictionary< K, V > > ToDictionaryAsync< K, V > (Func< T, K > getKey, Func< T, V > getValue, IEqualityComparer< K >? comparer, CancellationToken cancel=default)
 Executes the query asynchronously and converts the results to a Dictionary<K,V>.
 

Detailed Description

An interface for common static IQuerySource methods that are non-generic.

An interface defining the LINQ API for Fauna queries.

Template Parameters
TThe type returned by the query.

Definition at line 27 of file IQuerySource.cs.

Member Function Documentation

◆ All()

bool Fauna.Linq.IQuerySource< T >.All ( Expression< Func< T, bool > >  predicate)

Applies each predicate and executes the query. This is evaluated server-side.

Returns
True if every predicate evaluates to true. Otherwise, false.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ AllAsync()

Task< bool > Fauna.Linq.IQuerySource< T >.AllAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies each predicate and executes the query asynchronously. This is evaluated server-side.

Returns
True if every predicate evaluate to true, otherwise false.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Any() [1/2]

bool Fauna.Linq.IQuerySource< T >.Any ( )

Determines if the result is not empty. This is evaluated server-side.

Returns
True if the result contains any elements, otherwise false.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Any() [2/2]

bool Fauna.Linq.IQuerySource< T >.Any ( Expression< Func< T, bool > >  predicate)

Applies each predicate and executes the query. This is evaluated server-side.

Returns
True if any predicate evaluates to true, otherwise false.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ AnyAsync() [1/2]

Task< bool > Fauna.Linq.IQuerySource< T >.AnyAsync ( CancellationToken  cancel = default)

Determines if the result is not empty asynchronously. This is evaluated server-side.

Returns
True if the result contains any elements, otherwise false.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ AnyAsync() [2/2]

Task< bool > Fauna.Linq.IQuerySource< T >.AnyAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies each predicate and executes the query asynchronously. This is evaluated server-side.

Returns
True if any predicate evaluates to true, otherwise false.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Average()

double Fauna.Linq.IQuerySource< T >.Average ( Expression< Func< T, double > >  selector)

Calculates the mean average of values returned by a provided selector. This is evaluated server-side.

Returns
The mean average of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ AverageAsync()

Task< double > Fauna.Linq.IQuerySource< T >.AverageAsync ( Expression< Func< T, double > >  selector,
CancellationToken  cancel = default 
)

Asynchronously calculates the mean average of values returned by a provided selector. This is evaluated server-side.

Returns
The mean average of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Count() [1/2]

int Fauna.Linq.IQuerySource< T >.Count ( )

Applies a count of the elements and executes the query. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Count() [2/2]

int Fauna.Linq.IQuerySource< T >.Count ( Expression< Func< T, bool > >  predicate)

Applies the predicate, applies a count, and executes the query. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ CountAsync() [1/2]

Task< int > Fauna.Linq.IQuerySource< T >.CountAsync ( CancellationToken  cancel = default)

Applies a count of the elements and executes the query asynchronously. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ CountAsync() [2/2]

Task< int > Fauna.Linq.IQuerySource< T >.CountAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate, applies a count, and executes the query asynchronously. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Distinct()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.Distinct ( )

Obtains a distinct set of results. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ First() [1/2]

T Fauna.Linq.IQuerySource< T >.First ( )

Executes the query and obtains the first element in the result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ First() [2/2]

T Fauna.Linq.IQuerySource< T >.First ( Expression< Func< T, bool > >  predicate)

Applies the predicate, executes the query, and obtains the first element in the result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ FirstAsync() [1/2]

Task< T > Fauna.Linq.IQuerySource< T >.FirstAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and obtains the first element in the result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ FirstAsync() [2/2]

Task< T > Fauna.Linq.IQuerySource< T >.FirstAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate, executes the query asynchronously, and obtains the first element in the result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ FirstOrDefault() [1/2]

T? Fauna.Linq.IQuerySource< T >.FirstOrDefault ( )

Executes the query and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The first element in the result or the default value, if there is no result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ FirstOrDefault() [2/2]

T? Fauna.Linq.IQuerySource< T >.FirstOrDefault ( Expression< Func< T, bool > >  predicate)

Applies the predicate, executes the query, and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ FirstOrDefaultAsync() [1/2]

Task< T?> Fauna.Linq.IQuerySource< T >.FirstOrDefaultAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ FirstOrDefaultAsync() [2/2]

Task< T?> Fauna.Linq.IQuerySource< T >.FirstOrDefaultAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate, executes the query asynchronously, and obtains the first element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The first element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Last() [1/2]

T Fauna.Linq.IQuerySource< T >.Last ( )

Executes the query and obtains the last element in the result. This is evaluated server-side.

Returns
The last element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Last() [2/2]

T Fauna.Linq.IQuerySource< T >.Last ( Expression< Func< T, bool > >  predicate)

Applies the predicate, executes the query, and obtains the last element in the result. This is evaluated server-side.

Returns
The last element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LastAsync() [1/2]

Task< T > Fauna.Linq.IQuerySource< T >.LastAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and obtains the last element in the result. This is evaluated server-side.

Returns
The last element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LastAsync() [2/2]

Task< T > Fauna.Linq.IQuerySource< T >.LastAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate, executes the query asynchronously, and obtains the last element in the result. This is evaluated server-side.

Returns
The last element in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LastOrDefault() [1/2]

T? Fauna.Linq.IQuerySource< T >.LastOrDefault ( )

Executes the query and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The last element in the result or the default value, if there is no result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LastOrDefault() [2/2]

T? Fauna.Linq.IQuerySource< T >.LastOrDefault ( Expression< Func< T, bool > >  predicate)

Applies the predicate, executes the query and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The last element in the result or the default value, if there is no result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LastOrDefaultAsync() [1/2]

Task< T?> Fauna.Linq.IQuerySource< T >.LastOrDefaultAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The last element in the result or the default value, if there is no result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LastOrDefaultAsync() [2/2]

Task< T?> Fauna.Linq.IQuerySource< T >.LastOrDefaultAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate, executes the query asynchronously and obtains the last element in the result or the default value, if there is no result. This is evaluated server-side.

Returns
The last element in the result or the default value, if there is no result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LongCount() [1/2]

long Fauna.Linq.IQuerySource< T >.LongCount ( )

Applies a count of the elements and executes the query. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LongCount() [2/2]

long Fauna.Linq.IQuerySource< T >.LongCount ( Expression< Func< T, bool > >  predicate)

Applies the predicate, applies a count, and executes the query. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LongCountAsync() [1/2]

Task< long > Fauna.Linq.IQuerySource< T >.LongCountAsync ( CancellationToken  cancel = default)

Applies a count of the elements and executes the query asynchronously. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ LongCountAsync() [2/2]

Task< long > Fauna.Linq.IQuerySource< T >.LongCountAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate, applies a count, and executes the query asynchronously. This is evaluated server-side.

Returns
The number of elements in the result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Max()

T Fauna.Linq.IQuerySource< T >.Max ( )

Executes a query and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.

Returns
The maximum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Max< R >()

R Fauna.Linq.IQuerySource< T >.Max< R > ( Expression< Func< T, R > >  selector)

Applies a selector, executes a query, and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.

Returns
The maximum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ MaxAsync()

Task< T > Fauna.Linq.IQuerySource< T >.MaxAsync ( CancellationToken  cancel = default)

Executes a query asynchronously and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.

Returns
The maximum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ MaxAsync< R >()

Task< R > Fauna.Linq.IQuerySource< T >.MaxAsync< R > ( Expression< Func< T, R > >  selector,
CancellationToken  cancel = default 
)

Applies a selector, executes a query asynchronously, and returns the maximum value in the result set. This is evaluated server-side. (a, b) => if (a >= b) a else b.

Returns
The maximum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Min()

T Fauna.Linq.IQuerySource< T >.Min ( )

Executes a query and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.

Returns
The minimum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Min< R >()

R Fauna.Linq.IQuerySource< T >.Min< R > ( Expression< Func< T, R > >  selector)

Applies the selector, executes the query, and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.

Returns
The minimum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ MinAsync()

Task< T > Fauna.Linq.IQuerySource< T >.MinAsync ( CancellationToken  cancel = default)

Executes a query asynchronously and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.

Returns
The minimum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ MinAsync< R >()

Task< R > Fauna.Linq.IQuerySource< T >.MinAsync< R > ( Expression< Func< T, R > >  selector,
CancellationToken  cancel = default 
)

Applies the selector, executes the query asynchronously, and returns the minimum value in the result set. This is evaluated server-side. (a, b) => if (a <= b) a else b.

Returns
The minimum T .

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Order()

Applies default ordering to the query. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ OrderBy< K >()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.OrderBy< K > ( Expression< Func< T, K > >  keySelector)

Orders according to the selector. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ OrderByDescending< K >()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.OrderByDescending< K > ( Expression< Func< T, K > >  keySelector)

Orders by descending according to the selector. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ OrderDescending()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.OrderDescending ( )

Orders by descending. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ PaginateAsync()

IAsyncEnumerable< Page< T > > Fauna.Linq.IQuerySource< T >.PaginateAsync ( QueryOptions queryOptions = null,
CancellationToken  cancel = default 
)

Executes a paginating query asynchronously and returns an enumerable of pages.

Parameters
queryOptionsAn instance of QueryOptions.
cancelA cancellation token.
Returns
An IAsyncEnumerable of type Page<T>.

Implemented in Fauna.Linq.QuerySource< T >.

◆ Reverse()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.Reverse ( )

Reverses the order of the results. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Select< R >()

IQuerySource< R > Fauna.Linq.IQuerySource< T >.Select< R > ( Expression< Func< T, R > >  selector)

Applies a projection to the query. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Single() [1/2]

T Fauna.Linq.IQuerySource< T >.Single ( )

Executes the query. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.

Returns
The query result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Single() [2/2]

T Fauna.Linq.IQuerySource< T >.Single ( Expression< Func< T, bool > >  predicate)

Applies the predicate and executes the query. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.

Returns
The query result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SingleAsync() [1/2]

Task< T > Fauna.Linq.IQuerySource< T >.SingleAsync ( CancellationToken  cancel = default)

Executes the query asynchronously. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.

Returns
The query result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SingleAsync() [2/2]

Task< T > Fauna.Linq.IQuerySource< T >.SingleAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate and executes the query asynchronously. If the result is a single element, returns it. Otherwise, throws an exception. This is evaluated server-side.

Returns
The query result.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SingleOrDefault() [1/2]

T Fauna.Linq.IQuerySource< T >.SingleOrDefault ( )

Executes the query. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.

Returns
The query result or default.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SingleOrDefault() [2/2]

T Fauna.Linq.IQuerySource< T >.SingleOrDefault ( Expression< Func< T, bool > >  predicate)

Applies the predicate and executes the query. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.

Returns
The query result or default.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SingleOrDefaultAsync() [1/2]

Task< T > Fauna.Linq.IQuerySource< T >.SingleOrDefaultAsync ( CancellationToken  cancel = default)

Executes the query asynchronously. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.

Returns
The query result or default.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SingleOrDefaultAsync() [2/2]

Task< T > Fauna.Linq.IQuerySource< T >.SingleOrDefaultAsync ( Expression< Func< T, bool > >  predicate,
CancellationToken  cancel = default 
)

Applies the predicate and executes the query asynchronously. If the result is a single element, returns it. Otherwise, returns the default. This is evaluated server-side.

Returns
The query result or default.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Skip()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.Skip ( int  count)

Skips the first N elements of the results. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Sum() [1/3]

double Fauna.Linq.IQuerySource< T >.Sum ( Expression< Func< T, double > >  selector)

Calculates the sum of values returned by a provided selector. This is evaluated server-side.

Returns
The sum of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Sum() [2/3]

int Fauna.Linq.IQuerySource< T >.Sum ( Expression< Func< T, int > >  selector)

Calculates the sum of values returned by a provided selector. This is evaluated server-side.

Returns
The sum of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Sum() [3/3]

long Fauna.Linq.IQuerySource< T >.Sum ( Expression< Func< T, long > >  selector)

Calculates the sum of values returned by a provided selector. This is evaluated server-side.

Returns
The sum of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SumAsync() [1/3]

Task< double > Fauna.Linq.IQuerySource< T >.SumAsync ( Expression< Func< T, double > >  selector,
CancellationToken  cancel = default 
)

Asynchronously calculates the sum of values returned by a provided selector. This is evaluated server-side.

Returns
The sum of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SumAsync() [2/3]

Task< int > Fauna.Linq.IQuerySource< T >.SumAsync ( Expression< Func< T, int > >  selector,
CancellationToken  cancel = default 
)

Asynchronously calculates the sum of values returned by a provided selector. This is evaluated server-side.

Returns
The sum of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ SumAsync() [3/3]

Task< long > Fauna.Linq.IQuerySource< T >.SumAsync ( Expression< Func< T, long > >  selector,
CancellationToken  cancel = default 
)

Asynchronously calculates the sum of values returned by a provided selector. This is evaluated server-side.

Returns
The sum of selected values.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Take()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.Take ( int  count)

Takes the first N elements of the results. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToArray()

T[] Fauna.Linq.IQuerySource< T >.ToArray ( )

Executes the query and converts the results to a T:T[].

Returns
A T:T[].

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToArrayAsync()

Task< T[]> Fauna.Linq.IQuerySource< T >.ToArrayAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and converts the results to a T:T[].

Returns
A T:T[].

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToAsyncEnumerable()

IAsyncEnumerable< T > Fauna.Linq.IQuerySource< T >.ToAsyncEnumerable ( CancellationToken  cancel = default)

Executes a query asynchronously.

Parameters
cancelA cancellation token.
Returns
An IAsyncEnumerable<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToDictionary< K, V >() [1/2]

Dictionary< K, V > Fauna.Linq.IQuerySource< T >.ToDictionary< K, V > ( Func< T, K >  getKey,
Func< T, V >  getValue 
)

Executes the query synchronously and converts the results to a Dictionary<K,V>.

Parameters
getKeyA function used to obtain a key.
getValueA function used to obtain a value.
Template Parameters
KThe key type of the dictionary.
VThe value type of the dictionary.
Returns
The query result as a Dictionary<K,V>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

Type Constraints
K :notnull 

◆ ToDictionary< K, V >() [2/2]

Dictionary< K, V > Fauna.Linq.IQuerySource< T >.ToDictionary< K, V > ( Func< T, K >  getKey,
Func< T, V >  getValue,
IEqualityComparer< K >?  comparer 
)

Executes the query synchronously and converts the results to a Dictionary<K,V>.

Parameters
getKeyA function used to obtain a key.
getValueA function used to obtain a value.
comparerA comparer used to compare keys.
Template Parameters
KThe key type of the dictionary.
VThe value type of the dictionary.
Returns
The query result as a Dictionary<K,V>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

Type Constraints
K :notnull 

◆ ToDictionaryAsync< K, V >() [1/2]

Task< Dictionary< K, V > > Fauna.Linq.IQuerySource< T >.ToDictionaryAsync< K, V > ( Func< T, K >  getKey,
Func< T, V >  getValue,
CancellationToken  cancel = default 
)

Executes the query asynchronously and converts the results to a Dictionary<K,V>.

Parameters
getKeyA function used to obtain a key.
getValueA function used to obtain a value.
cancelA cancellation token.
Template Parameters
KThe key type of the dictionary.
VThe value type of the dictionary.
Returns
The query result as an awaitable Task of Dictionary<K,V>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

Type Constraints
K :notnull 

◆ ToDictionaryAsync< K, V >() [2/2]

Task< Dictionary< K, V > > Fauna.Linq.IQuerySource< T >.ToDictionaryAsync< K, V > ( Func< T, K >  getKey,
Func< T, V >  getValue,
IEqualityComparer< K >?  comparer,
CancellationToken  cancel = default 
)

Executes the query asynchronously and converts the results to a Dictionary<K,V>.

Parameters
getKeyA function used to obtain a key.
getValueA function used to obtain a value.
comparerA comparer used to compare keys.
cancelA cancellation token.
Template Parameters
KThe key type of the dictionary.
VThe value type of the dictionary.
Returns
The query result as an awaitable Task of Dictionary<K,V>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

Type Constraints
K :notnull 

◆ ToEnumerable()

IEnumerable< T > Fauna.Linq.IQuerySource< T >.ToEnumerable ( )

Executes a query.

Returns
An IEnumerable<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToHashSet() [1/2]

HashSet< T > Fauna.Linq.IQuerySource< T >.ToHashSet ( )

Executes the query and converts the results to a HashSet<T>.

Returns
A HashSet<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToHashSet() [2/2]

HashSet< T > Fauna.Linq.IQuerySource< T >.ToHashSet ( IEqualityComparer< T >?  comparer)

Executes the query and converts the results to a HashSet<T>.

Parameters
comparerA comparer to use.
Returns
A HashSet<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToHashSetAsync() [1/2]

Task< HashSet< T > > Fauna.Linq.IQuerySource< T >.ToHashSetAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and converts the results to a HashSet<T>.

Returns
A HashSet<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToHashSetAsync() [2/2]

Task< HashSet< T > > Fauna.Linq.IQuerySource< T >.ToHashSetAsync ( IEqualityComparer< T >?  comparer,
CancellationToken  cancel = default 
)

Executes the query asynchronously and converts the results to a HashSet<T>.

Parameters
comparerA comparer to use.
cancelA cancellation token.
Returns
A HashSet<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToList()

List< T > Fauna.Linq.IQuerySource< T >.ToList ( )

Executes the query and converts the results to a List<T>.

Returns
A List<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ ToListAsync()

Task< List< T > > Fauna.Linq.IQuerySource< T >.ToListAsync ( CancellationToken  cancel = default)

Executes the query asynchronously and converts the results to a List<T>.

Returns
A List<T>.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.

◆ Where()

IQuerySource< T > Fauna.Linq.IQuerySource< T >.Where ( Expression< Func< T, bool > >  predicate)

Applies the predicate to the query. This is evaluated server-side.

Returns
This IQuerySource<T> instance.

Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.


The documentation for this interface was generated from the following file: