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
sourceIQueryable<NoPipelineInput>An IQueryable with no other input.
documentsTDocument[]The documents.
Returns
- IQueryable<TDocument>
An IQueryable<T> whose elements are the documents.
Type Parameters
TDocumentThe 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
sourceIQueryable<NoPipelineInput>An IQueryable with no other input.
documentsIEnumerable<TDocument>The documents.
documentSerializerIBsonSerializer<TDocument>The document serializer.
Returns
- IQueryable<TDocument>
An IQueryable<T> whose elements are the documents.
Type Parameters
TDocumentThe type of the documents.