Method Set
Set<TField>(FieldDefinition<TDocument, TField>, TField)
Creates a set operator.
public UpdateDefinition<TDocument> Set<TField>(FieldDefinition<TDocument, TField> field, TField value)
Parameters
field
FieldDefinition<TDocument, TField>The field.
value
TFieldThe value.
Returns
- UpdateDefinition<TDocument>
A set operator.
Type Parameters
TField
The type of the field.
Set<TField>(Expression<Func<TDocument, TField>>, TField)
Creates a set operator.
public UpdateDefinition<TDocument> Set<TField>(Expression<Func<TDocument, TField>> field, TField value)
Parameters
field
Expression<Func<TDocument, TField>>The field.
value
TFieldThe value.
Returns
- UpdateDefinition<TDocument>
A set operator.
Type Parameters
TField
The type of the field.