public GameRepository(GODDataContext dbContext) : base(dbContext)
 {
 }
 public PlayerRepository(GODDataContext dbContext) : base(dbContext)
 {
 }
Example #3
0
        private bool disposedValue = false; // To detect redundant calls

        /// <summary>
        /// Initializes a new instance of the <see cref="BaseRepository{TEntity, TKey}"/> class.
        /// </summary>
        /// <param name="dbContext">The implementation of <see cref="DbContext"/></param>
        public BaseRepository(GODDataContext dbContext)
        {
            DbContext     = dbContext;
            this.Entities = this.DbContext.Set <TEntity>();
        }
Example #4
0
 public UnitOfWork(GODDataContext dbContext)
 {
     DbContext = dbContext;
 }
Example #5
0
 public RoundRepository(GODDataContext dbContext) : base(dbContext)
 {
 }