Method CurrentDate
CurrentDate(FieldDefinition<TDocument>, UpdateDefinitionCurrentDateType?)
Creates a current date operator.
public UpdateDefinition<TDocument> CurrentDate(FieldDefinition<TDocument> field, UpdateDefinitionCurrentDateType? type = null)
Parameters
field
FieldDefinition<TDocument>The field.
type
UpdateDefinitionCurrentDateType?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
field
Expression<Func<TDocument, object>>The field.
type
UpdateDefinitionCurrentDateType?The type.
Returns
- UpdateDefinition<TDocument>
A current date operator.