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 where TKey : IEquatable { /// /// 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. /// TKey Id { get; set; } /// /// A version number, to indicate the version of the schema. /// int Version { get; set; } } /// /// 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: IDocument { } }