mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-12 14:57:08 +02:00
open source Notesnook API
This commit is contained in:
1 parent
cf406454cd
commit
d2217adce7
85 files changed
+4137
No files matched your search
@@ -0,0 +1,15 @@
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user