Method Inc
Inc(Expression<Func<TDocument, double>>, double)
Increments the named element by a value (see $inc).
public static UpdateBuilder<TDocument> Inc(Expression<Func<TDocument, double>> memberExpression, double value)
Parameters
memberExpressionExpression<Func<TDocument, double>>The member expression.
valuedoubleThe value to increment by.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Inc(Expression<Func<TDocument, int>>, int)
Increments the named element by a value (see $inc).
public static UpdateBuilder<TDocument> Inc(Expression<Func<TDocument, int>> memberExpression, int value)
Parameters
memberExpressionExpression<Func<TDocument, int>>The member expression.
valueintThe value to increment by.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Inc(Expression<Func<TDocument, long>>, long)
Increments the named element by a value (see $inc).
public static UpdateBuilder<TDocument> Inc(Expression<Func<TDocument, long>> memberExpression, long value)
Parameters
memberExpressionExpression<Func<TDocument, long>>The member expression.
valuelongThe value to increment by.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).