Class ListSetFieldDefinitions<TDocument>
A subclass of SetFieldDefinitions containing a list of SetFieldDefinition instances to define the fields to be set.
public sealed class ListSetFieldDefinitions<TDocument> : SetFieldDefinitions<TDocument>
Type Parameters
TDocument
The type of the document.
- Inheritance
-
SetFieldDefinitions<TDocument>ListSetFieldDefinitions<TDocument>
- Inherited Members
- Extension Methods
Constructors
ListSetFieldDefinitions(IEnumerable<SetFieldDefinition<TDocument>>)
Initializes an instances ListSetFieldDefinitions.
public ListSetFieldDefinitions(IEnumerable<SetFieldDefinition<TDocument>> setFieldDefinitions)
Parameters
setFieldDefinitions
IEnumerable<SetFieldDefinition<TDocument>>The set field defintions.
Properties
List
Gets the list of SetFieldDefinition instances.
public IReadOnlyList<SetFieldDefinition<TDocument>> List { get; }
Property Value
- IReadOnlyList<SetFieldDefinition<TDocument>>
Methods
Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)
Renders the set field definitions.
public override BsonDocument Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)
Parameters
documentSerializer
IBsonSerializer<TDocument>The document serializer.
serializerRegistry
IBsonSerializerRegistryThe serializer registry.
linqProvider
LinqProviderThe linq provider.
Returns
- BsonDocument
The rendered set field definitions.