Table of Contents

Method Densify

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

Densify<TSource>(IMongoQueryable<TSource>, Expression<Func<TSource, object>>, DensifyRange, IEnumerable<Expression<Func<TSource, object>>>)

Adds a $densify stage to the LINQ pipeline.

public static IMongoQueryable<TSource> Densify<TSource>(this IMongoQueryable<TSource> source, Expression<Func<TSource, object>> field, DensifyRange range, IEnumerable<Expression<Func<TSource, object>>> partitionByFields = null)

Parameters

source IMongoQueryable<TSource>

A sequence of values.

field Expression<Func<TSource, object>>

The field.

range DensifyRange

The range.

partitionByFields IEnumerable<Expression<Func<TSource, object>>>

The partition by fields.

Returns

IMongoQueryable<TSource>

The densified sequence of values.

Type Parameters

TSource

The type of the elements of source.

Densify<TSource>(IMongoQueryable<TSource>, Expression<Func<TSource, object>>, DensifyRange, params Expression<Func<TSource, object>>[])

Adds a $densify stage to the LINQ pipeline.

public static IMongoQueryable<TSource> Densify<TSource>(this IMongoQueryable<TSource> source, Expression<Func<TSource, object>> field, DensifyRange range, params Expression<Func<TSource, object>>[] partitionByFields)

Parameters

source IMongoQueryable<TSource>

A sequence of values.

field Expression<Func<TSource, object>>

The field.

range DensifyRange

The range.

partitionByFields Expression<Func<TSource, object>>[]

The partition by fields.

Returns

IMongoQueryable<TSource>

The densified sequence of values.

Type Parameters

TSource

The type of the elements of source.