Interface ICreatedOn
Implement this interface on entities you want the library to automatically store the creation date with
Namespace: MongoDB.Entities
Assembly: MongoDB.Entities.dll
Syntax
public interface ICreatedOn
Properties
CreatedOn
This property will be automatically set by the library when an entity is created.
TIP: This property is useful when sorting by creation date.
Declaration
DateTime CreatedOn { get; set; }
Property Value
Type | Description |
---|---|
DateTime |