An interface for common static IQuerySource methods that are non-generic. More...
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. | |
| T | 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. | |
| 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. | |
| 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. | |
| T | 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| R | 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. | |
| 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. | |
| 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. | |
| R | 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. | |
| T | 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. | |
| 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. | |
| 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. | |
| T | 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. | |
| 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. | |
| 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>. | |
An interface for common static IQuerySource methods that are non-generic.
An interface defining the LINQ API for Fauna queries.
| T | The type returned by the query. |
Definition at line 27 of file IQuerySource.cs.
| bool Fauna.Linq.IQuerySource< T >.All | ( | Expression< Func< T, bool > > | predicate | ) |
Applies each predicate and executes the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| bool Fauna.Linq.IQuerySource< T >.Any | ( | ) |
Determines if the result is not empty. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| bool Fauna.Linq.IQuerySource< T >.Any | ( | Expression< Func< T, bool > > | predicate | ) |
Applies each predicate and executes the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| Task< bool > Fauna.Linq.IQuerySource< T >.AnyAsync | ( | CancellationToken | cancel = default | ) |
Determines if the result is not empty asynchronously. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| int Fauna.Linq.IQuerySource< T >.Count | ( | ) |
Applies a count of the elements and executes the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.Distinct | ( | ) |
Obtains a distinct set of results. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| T Fauna.Linq.IQuerySource< T >.First | ( | ) |
Executes the query and obtains the first element in the result. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| T Fauna.Linq.IQuerySource< T >.Last | ( | ) |
Executes the query and obtains the last element in the result. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| long Fauna.Linq.IQuerySource< T >.LongCount | ( | ) |
Applies a count of the elements and executes the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.Order | ( | ) |
Applies default ordering to the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.OrderBy< K > | ( | Expression< Func< T, K > > | keySelector | ) |
Orders according to the selector. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.OrderDescending | ( | ) |
Orders by descending. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
| queryOptions | An instance of QueryOptions. |
| cancel | A cancellation token. |
Implemented in Fauna.Linq.QuerySource< T >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.Reverse | ( | ) |
Reverses the order of the results. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< R > Fauna.Linq.IQuerySource< T >.Select< R > | ( | Expression< Func< T, R > > | selector | ) |
Applies a projection to the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.Skip | ( | int | count | ) |
Skips the first N elements of the results. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.Take | ( | int | count | ) |
Takes the first N elements of the results. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| T[] Fauna.Linq.IQuerySource< T >.ToArray | ( | ) |
Executes the query and converts the results to a T:T[].
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| Task< T[]> Fauna.Linq.IQuerySource< T >.ToArrayAsync | ( | CancellationToken | cancel = default | ) |
Executes the query asynchronously and converts the results to a T:T[].
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IAsyncEnumerable< T > Fauna.Linq.IQuerySource< T >.ToAsyncEnumerable | ( | CancellationToken | cancel = default | ) |
Executes a query asynchronously.
| cancel | A cancellation token. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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>.
| getKey | A function used to obtain a key. |
| getValue | A function used to obtain a value. |
| K | The key type of the dictionary. |
| V | The value type of the dictionary. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| K | : | notnull |
| 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>.
| getKey | A function used to obtain a key. |
| getValue | A function used to obtain a value. |
| comparer | A comparer used to compare keys. |
| K | The key type of the dictionary. |
| V | The value type of the dictionary. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| K | : | notnull |
| 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>.
| getKey | A function used to obtain a key. |
| getValue | A function used to obtain a value. |
| cancel | A cancellation token. |
| K | The key type of the dictionary. |
| V | The value type of the dictionary. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| K | : | notnull |
| 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>.
| getKey | A function used to obtain a key. |
| getValue | A function used to obtain a value. |
| comparer | A comparer used to compare keys. |
| cancel | A cancellation token. |
| K | The key type of the dictionary. |
| V | The value type of the dictionary. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| K | : | notnull |
| IEnumerable< T > Fauna.Linq.IQuerySource< T >.ToEnumerable | ( | ) |
Executes a query.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| HashSet< T > Fauna.Linq.IQuerySource< T >.ToHashSet | ( | ) |
Executes the query and converts the results to a HashSet<T>.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| HashSet< T > Fauna.Linq.IQuerySource< T >.ToHashSet | ( | IEqualityComparer< T >? | comparer | ) |
Executes the query and converts the results to a HashSet<T>.
| comparer | A comparer to use. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| Task< HashSet< T > > Fauna.Linq.IQuerySource< T >.ToHashSetAsync | ( | CancellationToken | cancel = default | ) |
Executes the query asynchronously and converts the results to a HashSet<T>.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| 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>.
| comparer | A comparer to use. |
| cancel | A cancellation token. |
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| List< T > Fauna.Linq.IQuerySource< T >.ToList | ( | ) |
Executes the query and converts the results to a List<T>.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| Task< List< T > > Fauna.Linq.IQuerySource< T >.ToListAsync | ( | CancellationToken | cancel = default | ) |
Executes the query asynchronously and converts the results to a List<T>.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.
| IQuerySource< T > Fauna.Linq.IQuerySource< T >.Where | ( | Expression< Func< T, bool > > | predicate | ) |
Applies the predicate to the query. This is evaluated server-side.
Implemented in Fauna.Linq.QuerySource< T >, and Fauna.Linq.QuerySource< Doc >.