Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamSeasonRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the database.</param>
 public TeamSeasonRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SeasonStandingsRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the database.</param>
 public SeasonStandingsRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DivisionRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the data store.</param>
 public DivisionRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConferenceRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the data store.</param>
 public ConferenceRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the database.</param>
 public GameRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 private DataAccess()
 {
     DbContext = new ProFootballDbContext();
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LeagueSeasonRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the data store.</param>
 public LeagueSeasonRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 8
0
 public LeaguesController(ProFootballDbContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SharedRepository"/> class.
 /// </summary>
 /// <param name="dbContext">The <see cref="ProFootballDbContext"/> representing the database.</param>
 public SharedRepository(ProFootballDbContext dbContext)
 {
     _dbContext = dbContext;
 }