Table of Contents

Struct RenderArgs<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Encapsulates settings needed for rendering Builder definitions.

public record struct RenderArgs<TDocument> : IEquatable<RenderArgs<TDocument>>

Type Parameters

TDocument

The type of the document.

Implements
Inherited Members

Constructors

RenderArgs(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider, PathRenderArgs, bool, bool)

Initializes a new instance of the RenderArgs<TDocument> record.

Properties

DocumentSerializer

Gets the document serializer.

LinqProvider

Gets the linq provider.

PathRenderArgs

Gets the path render arguments.

RenderDollarForm

Gets the value indicating whether full dollar form should be rendered.

RenderForFind

Gets the value indicating whether Render is being called for Find.

SerializerRegistry

Gets the serializer registry.

Methods

GetSerializer<T>()

Returns DocumentSerializer if it implements IBsonSerializer{T} or resolves IBsonSerializer{T} from SerializerRegistry.

WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument>)

Creates a new RenderArgs with new document type {TNewDocument}