Method CreateView
CreateView<TDocument, TResult>(string, string, PipelineDefinition<TDocument, TResult>, CreateViewOptions<TDocument>, CancellationToken)
Creates a view.
public virtual void CreateView<TDocument, TResult>(string viewName, string viewOn, PipelineDefinition<TDocument, TResult> pipeline, CreateViewOptions<TDocument> options = null, CancellationToken cancellationToken = default)
Parameters
viewNamestringThe name of the view.
viewOnstringThe name of the collection that the view is on.
pipelinePipelineDefinition<TDocument, TResult>The pipeline.
optionsCreateViewOptions<TDocument>The options.
cancellationTokenCancellationTokenThe cancellation token.
Type Parameters
TDocumentThe type of the input documents.
TResultThe type of the pipeline result documents.
CreateView<TDocument, TResult>(IClientSessionHandle, string, string, PipelineDefinition<TDocument, TResult>, CreateViewOptions<TDocument>, CancellationToken)
Creates a view.
public virtual void CreateView<TDocument, TResult>(IClientSessionHandle session, string viewName, string viewOn, PipelineDefinition<TDocument, TResult> pipeline, CreateViewOptions<TDocument> options = null, CancellationToken cancellationToken = default)
Parameters
sessionIClientSessionHandleThe session.
viewNamestringThe name of the view.
viewOnstringThe name of the collection that the view is on.
pipelinePipelineDefinition<TDocument, TResult>The pipeline.
optionsCreateViewOptions<TDocument>The options.
cancellationTokenCancellationTokenThe cancellation token.
Type Parameters
TDocumentThe type of the input documents.
TResultThe type of the pipeline result documents.