Table of Contents

Class GroupByBuilder<TDocument>

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

A builder for specifying what the GroupBy command should group by.

[BsonSerializer(typeof(GroupByBuilder<>.Serializer))]
public class GroupByBuilder<TDocument> : BuilderBase, IConvertibleToBsonDocument, IMongoGroupBy

Type Parameters

TDocument

The type of the document.

Inheritance
GroupByBuilder<TDocument>
Implements
Inherited Members
Extension Methods

Constructors

GroupByBuilder()

Initializes a new instance of the GroupByBuilder<TDocument> class.

Methods

Keys(params Expression<Func<TDocument, object>>[])

Sets one or more key names.

ToBsonDocument()

Converts this object to a BsonDocument.