Struct RenderArgs

| MongoDB CSharp Driver API Reference (original) (raw)

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, IBsonSerializerRegistry, PathRenderArgs, bool, bool, bool, ExpressionTranslationOptions)

Initializes a new instance of the RenderArgs record.

Properties

DocumentSerializer

Gets the document serializer.

PathRenderArgs

Gets the path render arguments.

RenderDollarForm

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

RenderForElemMatch

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

RenderForFind

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

SerializerRegistry

Gets the serializer registry.

TranslationOptions

Gets the translation options used when translation Expressions to MQL.

Methods

GetSerializer()

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

WithNewDocumentType(IBsonSerializer)

Creates a new RenderArgs with new document type {TNewDocument}