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
+2 -15
View File
@@ -4,7 +4,8 @@ using System;
namespace MongoDbGenericRepository.Models
{
/// <summary>
/// This class represents a basic document that can be stored in MongoDb
/// 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.
/// </summary>
public class Document : IDocument
{
@@ -33,18 +34,4 @@ namespace MongoDbGenericRepository.Models
/// </summary>
public int Version { get; set; }
}
public class PartitionedDocument : Document, IPartitionedDocument
{
public PartitionedDocument(string partitionKey)
{
PartitionKey = partitionKey;
}
/// <summary>
/// The name of the property used for partitioning the collection
/// This will not be inserted into the collection.
/// This partition key will be prepended to the collection name to create a new collection.
/// </summary>
public string PartitionKey { get; set; }
}
}