From 8028d400053ef02c7638fea7efc9a56c96f9adec Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 8 Jan 2024 14:43:05 +0300 Subject: [PATCH] feat: add an interface for standard saving changes --- Application/Interfaces/DbContexts/IDbContextBase.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Application/Interfaces/DbContexts/IDbContextBase.cs diff --git a/Application/Interfaces/DbContexts/IDbContextBase.cs b/Application/Interfaces/DbContexts/IDbContextBase.cs new file mode 100644 index 0000000..2b650ff --- /dev/null +++ b/Application/Interfaces/DbContexts/IDbContextBase.cs @@ -0,0 +1,9 @@ +using System.Threading.Tasks; +using System.Threading; + +namespace Mirea.Api.DataAccess.Application.Interfaces.DbContexts; + +public interface IDbContextBase +{ + Task SaveChangesAsync(CancellationToken cancellationToken); +} \ No newline at end of file