db: refactor to only init mongo client & collections once
This commit is contained in:
@@ -29,6 +29,5 @@ namespace Streetwriters.Data.Interfaces
|
||||
{
|
||||
void AddCommand(Func<IClientSessionHandle, CancellationToken, Task> func);
|
||||
Task<int> SaveChanges();
|
||||
IMongoCollection<T> GetCollection<T>(string databaseName, string collectionName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user