Table of Contents

Interface ICreatedOn

Namespace
MongoDB.Entities
Assembly
MongoDB.Entities.dll

Implement this interface on entities you want the library to automatically store the creation date with

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.

DateTime CreatedOn { get; set; }

Property Value

DateTime