Struct RenderArgs<TDocument>
Encapsulates settings needed for rendering Builder definitions.
Type Parameters
TDocument
The type of the document.
- Implements
-
IEquatable<Render
Args <TDocument>>
- Inherited Members
Constructors
- RenderArgs(IBsonSerializer<TDocument>, IBsonSerializerRegistry, PathRenderArgs, bool, bool, bool, ExpressionTranslationOptions)
Initializes a new instance of the RenderArgs<TDocument> record.
Properties
- Document
Serializer Gets the document serializer.
- Path
Render Args Gets the path render arguments.
- Render
Dollar Form Gets the value indicating whether full dollar form should be rendered.
- Render
For Elem Match Gets the value indicating whether Render is being called for ElemMatch.
- Render
For Find Gets the value indicating whether Render is being called for Find.
- Serializer
Registry Gets the serializer registry.
- Translation
Options Gets the translation options used when translation Expressions to MQL.
Methods
- GetSerializer<T>()
Returns Document
Serializer if it implementsIBsonSerializer{T}
or resolvesIBsonSerializer{T}
from SerializerRegistry .
- WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument>)
Creates a new RenderArgs with new document type {TNewDocument}