Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created July 7, 2021 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/a88ce100d81149e0257f4f4ef6993c2c to your computer and use it in GitHub Desktop.
Save dcomartin/a88ce100d81149e0257f4f4ef6993c2c to your computer and use it in GitHub Desktop.
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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment