public EntityFrameworkRepository(CodesContext context) { DbContext = context; DbSet = context.Set <T>(); }
public DbContextUnitOfWork(CodesContext context) { _context = context;; }
public static void Initialize(CodesContext context) { context.Database.Migrate(); context.SaveChanges(); }