Generated nuget package 1.2 and tests passing.

This commit is contained in:
alexandre-spieser
2017-09-09 19:13:32 +00:00
parent 39879f6f5f
commit 58cf1f1faf
37 changed files with 6095 additions and 72037 deletions
+10 -11
View File
@@ -8,19 +8,18 @@ namespace MongoDbGenericRepository.Models
/// </summary>
public interface IDocument
{
/// <summary>
/// The date and UTC time at which the document was added to the collection.
/// </summary>
DateTime AddedAtUtc { get; set; }
/// <summary>
/// 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.
/// </summary>
Guid Id { get; set; }
/// <summary>
/// A version number, to indicate the version of the schema.
/// </summary>
int Version { get; set; }
}
/// <summary>
/// This class represents a document that can be inserted in a collection that can be partitioned.
/// The partition key allows for the creation of different collections having the same document schema.
/// This can be useful if you are planning to build a Software as a Service (SaaS) Platform, or if you want to reduce indexing.
/// You could for example insert Logs in different collections based on the week and year they where created, or their Log category/source.
/// </summary>
public interface IPartitionedDocument : IDocument
{
string PartitionKey { get; set; }
}
}