Added tests

This commit is contained in:
alexandre-spieser
2017-09-24 21:34:29 +00:00
parent 6552a01d28
commit 1d985e0274
9 changed files with 1063 additions and 79 deletions
+4 -2
View File
@@ -1,4 +1,5 @@
using System;
using MongoDB.Bson.Serialization.Attributes;
using System;
namespace MongoDbGenericRepository.Models
{
@@ -9,9 +10,10 @@ namespace MongoDbGenericRepository.Models
public interface IDocument<TKey> where TKey : IEquatable<TKey>
{
/// <summary>
/// The Guid, which must be decorated with the [BsonId] attribute
/// The Primary Key, which must be decorated with the [BsonId] attribute
/// if you want the MongoDb C# driver to consider it to be the document ID.
/// </summary>
[BsonId]
TKey Id { get; set; }
/// <summary>
/// A version number, to indicate the version of the schema.