// C'tor // public BaseRepository(EuroContext context, IMemoryCache cache) { _context = context; Cache = cache; Set = context.Set <TEntity>(); }
public UnitOfWork(EuroContext context, IGroupRepository <Group> groupRepository, ITeamRepository <Team> teamRepository, IMatchRepository <Match> matchRepository) { _context = context; Groups = groupRepository; Teams = teamRepository; Matches = matchRepository; }
public BaseServices() { db = new EuroContext(); }
public MatchRepository(EuroContext context, IMemoryCache cache) : base(context, cache) { }
public GroupRepository(EuroContext context, IMemoryCache cache) : base(context, cache) { }