14 lines
356 B
C#
14 lines
356 B
C#
using MongoDB.Driver;
|
|
|
|
namespace Core.Blueprint.DAL.Infrastructure.Contracts
|
|
{
|
|
public interface IMongoContext
|
|
{
|
|
|
|
IMongoClient _client { get; }
|
|
IMongoDatabase Database { get; }
|
|
void DropCollection<TDocument>(string partitionKey = null) where TDocument : class;
|
|
void SetUpDatabase(string database);
|
|
}
|
|
}
|