cleanup. Removing redundant GetCollection and Drop collection method, removed static constructor, added a virtual initialization method.

This commit is contained in:
alexandre-spieser
2018-09-09 13:05:45 +01:00
parent 72ea6e7999
commit db4061dc3c
3 changed files with 29 additions and 58 deletions
@@ -595,7 +595,7 @@ namespace MongoDbGenericRepository
where TDocument : IDocument<TKey>
where TKey : IEquatable<TKey>
{
return MongoDbContext.GetCollection<TDocument, TKey>(partitionKey);
return MongoDbContext.GetCollection<TDocument>(partitionKey);
}
/// <summary>