using System; namespace MongoDbGenericRepository.Models { /// /// This class represents a basic document that can be stored in MongoDb. /// Your document must implement this class in order for the MongoDbRepository to handle them. /// public interface IDocument { /// /// The date and UTC time at which the document was added to the collection. /// DateTime AddedAtUtc { get; set; } /// /// The Guid, which must be decorated with the [BsonId] attribute /// if you want the MongoDb C# driver to consider it to be the document ID. /// Guid Id { get; set; } /// /// A version number, to indicate the version of the schema. /// int Version { get; set; } } }