Newer
Older
TheCleanArchitecture / src / Application / Common / Interfaces / IApplicationDbContext.cs
@Derek Comartin Derek Comartin on 15 Jun 2021 424 bytes Reorganized
using CleanArchitecture.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using System.Threading;
using System.Threading.Tasks;

namespace CleanArchitecture.Application.Common.Interfaces
{
    public interface IApplicationDbContext
    {
        DbSet<TodoList> TodoLists { get; set; }

        DbSet<TodoItem> TodoItems { get; set; }

        Task<int> SaveChangesAsync(CancellationToken cancellationToken);
    }
}