using MongoDB.Driver;
namespace MongoDbGenericRepository
{
///
/// This is the interface of the IMongoDbContext which is managed by the .
///
public interface IMongoDbContext
{
///
/// The IMongoClient from the official MongoDb driver
///
IMongoClient Client { get; }
///
/// The IMongoDatabase from the official Mongodb driver
///
IMongoDatabase Database { get; }
///
/// Returns a collection for a document type that has a partition key.
///
///
/// The value of the partition key.
IMongoCollection GetCollection(string partitionKey = null);
///
/// Drops a collection having a partitionkey, use very carefully.
///
///
void DropCollection(string partitionKey = null);
///
/// Sets the Guid representation of the MongoDb Driver.
///
/// The new value of the GuidRepresentation
void SetGuidRepresentation(MongoDB.Bson.GuidRepresentation guidRepresentation);
}
}