mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
15 lines
399 B
C#
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);
|
|
}
|
|
} |