Method Set
Set<TMember>(Expression<Func<TDocument, TMember>>, TMember)
Sets the value of the named element to a new value (see $set).
public UpdateBuilder<TDocument> Set<TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression.
value
TMemberThe new value.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Type Parameters
TMember
The type of the member.