Method Documents
Documents<TDocument>(IMongoQueryable<NoPipelineInput>, params TDocument[])
Injects a sequence of documents at the beginning of a pipeline.
public static IMongoQueryable<TDocument> Documents<TDocument>(this IMongoQueryable<NoPipelineInput> source, params TDocument[] documents)
Parameters
source
IMongoQueryable<NoPipelineInput>An IMongoQueryable with no other input.
documents
TDocument[]The documents.
Returns
- IMongoQueryable<TDocument>
An IMongoQueryable<T> whose elements are the documents.
Type Parameters
TDocument
The type of the documents.
Documents<TDocument>(IMongoQueryable<NoPipelineInput>, IEnumerable<TDocument>, IBsonSerializer<TDocument>)
Injects a sequence of documents at the beginning of a pipeline.
public static IMongoQueryable<TDocument> Documents<TDocument>(this IMongoQueryable<NoPipelineInput> source, IEnumerable<TDocument> documents, IBsonSerializer<TDocument> documentSerializer)
Parameters
source
IMongoQueryable<NoPipelineInput>An IMongoQueryable with no other input.
documents
IEnumerable<TDocument>The documents.
documentSerializer
IBsonSerializer<TDocument>The document serializer.
Returns
- IMongoQueryable<TDocument>
An IMongoQueryable<T> whose elements are the documents.
Type Parameters
TDocument
The type of the documents.