Method Mul
Mul(Expression<Func<TDocument, double>>, double)
Multiplies the named element by a value (see $mul).
public UpdateBuilder<TDocument> Mul(Expression<Func<TDocument, double>> memberExpression, double value)
Parameters
memberExpression
Expression<Func<TDocument, double>>The member expression.
value
doubleThe value to multiply by.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Mul(Expression<Func<TDocument, int>>, int)
Multiplies the named element by a value (see $mul).
public UpdateBuilder<TDocument> Mul(Expression<Func<TDocument, int>> memberExpression, int value)
Parameters
memberExpression
Expression<Func<TDocument, int>>The member expression.
value
intThe value to multiply by.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
Mul(Expression<Func<TDocument, long>>, long)
Multiplies the named element by a value (see $mul).
public UpdateBuilder<TDocument> Mul(Expression<Func<TDocument, long>> memberExpression, long value)
Parameters
memberExpression
Expression<Func<TDocument, long>>The member expression.
value
longThe value to multiply by.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).