finalizare 1.0

This commit is contained in:
andrei-mihnea-cerbu
2024-05-21 12:10:53 +03:00
parent f7795f7519
commit 1cc1d34003
11268 changed files with 2102399 additions and 10909 deletions
@@ -6,13 +6,13 @@ public interface IChatMongoDbService
{
IMongoCollection<T> GetCollection<T>();
Task<List<T>> FindAsync<T>(List<(string FieldName, string Value)> criteria);
Task<List<T>> FindAsync<T>(List<(string FieldName, string Value)> criteria, CancellationToken token);
Task AddAsync<T>(T document);
Task AddAsync<T>(T document, CancellationToken token);
Task ModifyAsync<T>(string keyField, string keyValue, T document);
Task ModifyAsync<T>(string keyField, string keyValue, T document, CancellationToken token);
Task DeleteAsync<T>(string keyField, string keyValue);
Task DeleteAsync<T>(string keyField, string keyValue, CancellationToken token);
Task DeleteByIdAsync<T>(string id);
Task DeleteByIdAsync<T>(string id, CancellationToken token);
}