public UnitOfWork() { _context = new CCTEntities1(); _myGordonCtx = new MyGordonEntities(); }
/// <summary> /// Initializes a new instance of the <see cref="GenericRepository{T}" /> class. /// </summary> /// <param name="context">The context for the repository</param> public GenericRepository(MyGordonEntities context) { _myGordonCtx = context; _dbSet = _myGordonCtx.Set <T>(); }