Files
notesnook-sync-server_custo…/Streetwriters.Data/Interfaces/IDbContext.cs
2022-12-28 16:20:25 +05:00

15 lines
399 B
C#

using MongoDB.Driver;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Streetwriters.Data.Interfaces
{
public interface IDbContext : IDisposable
{
void AddCommand(Func<IClientSessionHandle, CancellationToken, Task> func);
Task<int> SaveChanges();
IMongoCollection<T> GetCollection<T>(string databaseName, string collectionName);
}
}