コード例 #1
0
        public MatchDayRepository(HandicapContext context,
                                  ILogger <MatchDayRepository> logger)
        {
            _context = context;
            _logger  = logger;

            _matchDays = context.Set <MatchDay>();
        }
コード例 #2
0
 public GameRepository(HandicapContext context)
 {
     _context = context;
     _games   = context.Set <Game>();
     _players = context.Set <Player>();
 }
コード例 #3
0
 public PlayerRepository(HandicapContext context)
 {
     _context = context;
     _players = context.Set <Player>();
 }
コード例 #4
0
 public HandicapConfigurationRepository(HandicapContext context)
 {
     _context = context;
     _configs = _context.Set <HandicapConfiguration>();
 }