Ejemplo n.º 1
0
 public DbRepository(FunAppContext context)
 {
     this.context = context;
     this.dbSet   = this.context.Set <TEntity>();
 }
Ejemplo n.º 2
0
 public DbRepository(FunAppContext context)
 {
     _context = context;
     _dbSet   = _context.Set <TEntity>();
 }
Ejemplo n.º 3
0
 public DbRepository(FunAppContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(this.context));
     this.dbSet   = this.context.Set <TEntity>();
 }