Method CurrentDate
CurrentDate(FieldDefinition<TDocument>, UpdateDefinitionCurrentDateType?)
Creates a current date operator.
public UpdateDefinition<TDocument> CurrentDate(FieldDefinition<TDocument> field, UpdateDefinitionCurrentDateType? type = null)
Parameters
fieldFieldDefinition<TDocument>The field.
typeUpdateDefinitionCurrentDateType?The type.
Returns
- UpdateDefinition<TDocument>
A current date operator.
CurrentDate(Expression<Func<TDocument, object>>, UpdateDefinitionCurrentDateType?)
Creates a current date operator.
public UpdateDefinition<TDocument> CurrentDate(Expression<Func<TDocument, object>> field, UpdateDefinitionCurrentDateType? type = null)
Parameters
fieldExpression<Func<TDocument, object>>The field.
typeUpdateDefinitionCurrentDateType?The type.
Returns
- UpdateDefinition<TDocument>
A current date operator.