Beispiel #1
0
        // C'tor
        //
        public BaseRepository(EuroContext context, IMemoryCache cache)
        {
            _context = context;
            Cache    = cache;

            Set = context.Set <TEntity>();
        }
Beispiel #2
0
        public UnitOfWork(EuroContext context, IGroupRepository <Group> groupRepository, ITeamRepository <Team> teamRepository, IMatchRepository <Match> matchRepository)
        {
            _context = context;

            Groups  = groupRepository;
            Teams   = teamRepository;
            Matches = matchRepository;
        }
Beispiel #3
0
 public BaseServices()
 {
     db = new EuroContext();
 }
Beispiel #4
0
 public MatchRepository(EuroContext context, IMemoryCache cache) : base(context, cache)
 {
 }
Beispiel #5
0
 public GroupRepository(EuroContext context, IMemoryCache cache) : base(context, cache)
 {
 }