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