IApplicationDbContext

just to make the EntityRepo independent of EF-UOW.

using System.Data.Entity;
using GigHub.Core.Models;

namespace GigHub.Persistence
{
    public interface IApplicationDbContext
    {
        DbSet<Gig> Gigs { get; set; }
        DbSet<Genre> Genres { get; set; }
        DbSet<Attendance> Attendances { get; set; }
        DbSet<Following> Followings { get; set; }
        DbSet<Notification> Notifications { get; set; }
        DbSet<UserNotification> UserNotifications { get; set; }
        IDbSet<ApplicationUser> Users { get; set; }
    }
}

Comments

Popular posts from this blog

IGenricRepository

Summary of All Data Source Patterns