chat implemented
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
namespace Application.Services.Database.MongoDB;
|
||||
using MongoDB.Driver;
|
||||
|
||||
namespace Application.Services.Database.MongoDB;
|
||||
|
||||
public interface IChatMongoDbService
|
||||
{
|
||||
// Additional methods specific to Chat database
|
||||
IMongoCollection<T> GetCollection<T>();
|
||||
|
||||
Task<List<T>> FindAsync<T>(List<(string FieldName, string Value)> criteria);
|
||||
|
||||
Task AddAsync<T>(T document);
|
||||
|
||||
Task ModifyAsync<T>(string keyField, string keyValue, T document);
|
||||
|
||||
Task DeleteAsync<T>(string keyField, string keyValue);
|
||||
}
|
||||
Reference in New Issue
Block a user