Files
AuditLogs/audit-logs/audit-logs/Repositories/Interfaces/IMongoRepository.cs
T
2024-11-14 17:12:32 +01:00

12 lines
316 B
C#

namespace audit.Repositories.Interfaces;
using MongoDB.Bson;
using MongoDB.Driver;
public interface IMongoRepository<T>
{
IMongoCollection<T> Collection { get; }
string GetCollectionName();
Task InsertOneAsync(T obj);
Task<T?> DeleteAsync(ObjectId id);
Task UpdateOneAsync(ObjectId id, T obj);
}