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
UpdateDefinition ?Current Date Type The type.
Returns
- Update
Definition <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
UpdateDefinition ?Current Date Type The type.
Returns
- Update
Definition <TDocument> A current date operator.