Class MongoQueryable
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
public static class MongoQueryable
Inheritance
MongoQueryable
Inherited Members
Methods
AnyAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Determines whether any element of a sequence satisfies a condition.
AnyAsync(IQueryable, CancellationToken)
Determines whether a sequence contains any elements.
Appends an arbitrary stage to the LINQ pipeline.
As<TSource, TResult>(IQueryable, IBsonSerializer)
Allows the results to be interpreted as a different type. It is up to the caller to determine that the new result type is compatible with the actual results.
AverageAsync(IQueryable, CancellationToken)
Computes the average of a sequence of decimal values.
AverageAsync(IQueryable, CancellationToken)
Computes the average of a sequence of double values.
AverageAsync(IQueryable, CancellationToken)
Computes the average of a sequence of int values.
AverageAsync(IQueryable, CancellationToken)
Computes the average of a sequence of long values.
AverageAsync(IQueryable<decimal?>, CancellationToken)
Computes the average of a sequence of Nullable values.
AverageAsync(IQueryable<double?>, CancellationToken)
Computes the average of a sequence of Nullable values.
AverageAsync(IQueryable<int?>, CancellationToken)
Computes the average of a sequence of Nullable values.
AverageAsync(IQueryable<long?>, CancellationToken)
Computes the average of a sequence of Nullable values.
AverageAsync(IQueryable<float?>, CancellationToken)
Computes the average of a sequence of Nullable values.
AverageAsync(IQueryable, CancellationToken)
Computes the average of a sequence of float values.
AverageAsync(IQueryable, Expression<Func<TSource, decimal>>, CancellationToken)
Computes the average of the sequence of decimal values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, double>>, CancellationToken)
Computes the average of the sequence of double values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, int>>, CancellationToken)
Computes the average of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, long>>, CancellationToken)
Computes the average of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, decimal?>>, CancellationToken)
Computes the average of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, double?>>, CancellationToken)
Computes the average of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, int?>>, CancellationToken)
Computes the average of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, long?>>, CancellationToken)
Computes the average of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, float?>>, CancellationToken)
Computes the average of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
AverageAsync(IQueryable, Expression<Func<TSource, float>>, CancellationToken)
Computes the average of the sequence of float values that is obtained by invoking a projection function on each element of the input sequence.
CountAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Returns the number of elements in the specified sequence that satisfies a condition.
CountAsync(IQueryable, CancellationToken)
Returns the number of elements in a sequence.
Adds a $densify stage to the LINQ pipeline.
Adds a $densify stage to the LINQ pipeline.
Documents(IQueryable, IEnumerable, IBsonSerializer)
Injects a sequence of documents at the beginning of a pipeline.
Documents(IQueryable, params TDocument[])
Injects a sequence of documents at the beginning of a pipeline.
FirstAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Returns the first element of a sequence that satisfies a specified condition.
FirstAsync(IQueryable, CancellationToken)
Returns the first element of a sequence.
FirstOrDefaultAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.
FirstOrDefaultAsync(IQueryable, CancellationToken)
Returns the first element of a sequence, or a default value if the sequence contains no elements.
Correlates the elements of two sequences based on key equality and groups the results.
Correlates the elements of two sequences based on matching keys.
LongCountAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Returns the number of elements in the specified sequence that satisfies a condition.
LongCountAsync(IQueryable, CancellationToken)
Returns the number of elements in a sequence.
Looks up documents in a foreign collection.
Looks up documents in a foreign collection.
Looks up documents in a list of foreign documents.
Looks up documents in a list of foreign documents.
Looks up documents in a foreign collection.
Looks up documents in a list of foreign documents.
MaxAsync(IQueryable, CancellationToken)
Returns the maximum value in a generic IQueryable.
MaxAsync<TSource, TResult>(IQueryable, Expression<Func<TSource, TResult>>, CancellationToken)
Invokes a projection function on each element of a generic IQueryable and returns the maximum resulting value.
MinAsync(IQueryable, CancellationToken)
Returns the minimum value in a generic IQueryable.
MinAsync<TSource, TResult>(IQueryable, Expression<Func<TSource, TResult>>, CancellationToken)
Invokes a projection function on each element of a generic IQueryable and returns the minimum resulting value.
Returns a sample of the elements in the source
.
SearchMeta(IQueryable, SearchDefinition, string, SearchCountOptions)
Appends a $searchMeta stage to the LINQ pipeline.
Search(IQueryable, SearchDefinition, SearchHighlightOptions, string, SearchCountOptions, bool, bool)
Appends a $search stage to the LINQ pipeline.
Search(IQueryable, SearchDefinition, SearchOptions)
Appends a $search stage to the LINQ pipeline.
SingleAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
SingleAsync(IQueryable, CancellationToken)
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
SingleOrDefaultAsync(IQueryable, Expression<Func<TSource, bool>>, CancellationToken)
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
SingleOrDefaultAsync(IQueryable, CancellationToken)
Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
StandardDeviationPopulation(IQueryable)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable<decimal?>)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable<double?>)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable<int?>)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable<long?>)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable<float?>)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulation(IQueryable)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable<decimal?>, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable<double?>, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable<int?>, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable<long?>, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable<float?>, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable, CancellationToken)
Computes the population standard deviation of a sequence of values.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, decimal>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, double>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, int>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, long>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, decimal?>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, double?>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, int?>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, long?>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, float?>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulationAsync(IQueryable, Expression<Func<TSource, float>>, CancellationToken)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, decimal>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, double>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, int>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, long>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, decimal?>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, double?>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, int?>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, long?>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, float?>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationPopulation(IQueryable, Expression<Func<TSource, float>>)
Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable<decimal?>)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable<double?>)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable<int?>)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable<long?>)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable<float?>)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSample(IQueryable)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable<decimal?>, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable<double?>, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable<int?>, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable<long?>, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable<float?>, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable, CancellationToken)
Computes the sample standard deviation of a sequence of values.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, decimal>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, double>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, int>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, long>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, decimal?>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, double?>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, int?>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, long?>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, float?>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSampleAsync(IQueryable, Expression<Func<TSource, float>>, CancellationToken)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, decimal>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, double>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, int>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, long>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, decimal?>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, double?>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, int?>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, long?>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, float?>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
StandardDeviationSample(IQueryable, Expression<Func<TSource, float>>)
Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence.
SumAsync(IQueryable, CancellationToken)
Computes the sum of a sequence of decimal values.
SumAsync(IQueryable, CancellationToken)
Computes the sum of a sequence of double values.
SumAsync(IQueryable, CancellationToken)
Computes the sum of a sequence of int values.
SumAsync(IQueryable, CancellationToken)
Computes the sum of a sequence of long values.
SumAsync(IQueryable<decimal?>, CancellationToken)
Computes the sum of a sequence of Nullable values.
SumAsync(IQueryable<double?>, CancellationToken)
Computes the sum of a sequence of Nullable values.
SumAsync(IQueryable<int?>, CancellationToken)
Computes the sum of a sequence of Nullable values.
SumAsync(IQueryable<long?>, CancellationToken)
Computes the sum of a sequence of Nullable values.
SumAsync(IQueryable<float?>, CancellationToken)
Computes the sum of a sequence of Nullable values.
SumAsync(IQueryable, CancellationToken)
Computes the sum of a sequence of float values.
SumAsync(IQueryable, Expression<Func<TSource, decimal>>, CancellationToken)
Computes the sum of the sequence of decimal values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, double>>, CancellationToken)
Computes the sum of the sequence of double values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, int>>, CancellationToken)
Computes the sum of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, long>>, CancellationToken)
Computes the sum of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, decimal?>>, CancellationToken)
Computes the sum of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, double?>>, CancellationToken)
Computes the sum of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, int?>>, CancellationToken)
Computes the sum of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, long?>>, CancellationToken)
Computes the sum of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, float?>>, CancellationToken)
Computes the sum of the sequence of Nullable values that is obtained by invoking a projection function on each element of the input sequence.
SumAsync(IQueryable, Expression<Func<TSource, float>>, CancellationToken)
Computes the sum of the sequence of float values that is obtained by invoking a projection function on each element of the input sequence.
Returns a specified number of contiguous elements from the start of a sequence.
ToCursorAsync(IQueryable, CancellationToken)
Executes the LINQ query and returns a cursor to the results.
ToCursor(IQueryable, CancellationToken)
Executes the LINQ query and returns a cursor to the results.
ToListAsync(IQueryable, CancellationToken)
Executes the LINQ query and returns a list of the results.
VectorSearch<TSource, TField>(IQueryable, FieldDefinition, QueryVector, int, VectorSearchOptions)
Appends a $vectorSearch stage to the LINQ pipeline.
Appends a $vectorSearch stage to the LINQ pipeline.