using MongoDB.Driver;
using MongoDbGenericRepository.Models;
namespace MongoDbGenericRepository
{
public interface IMongoDbContext
{
///
/// The private GetCollection method
///
///
IMongoCollection GetCollection();
///
/// Returns a collection for a document type that has a partition key.
///
///
/// The value of the partition key.
IMongoCollection GetCollection(string partitionKey) where TDocument : IDocument;
///
/// Drops a collection, use very carefully.
///
///
void DropCollection();
///
/// Drops a collection having a partitionkey, use very carefully.
///
///
void DropCollection(string partitionKey);
}
}