Example #1
0
 public Repository(CedroContext context)
 {
     _context = context;
     _dbSet   = _context.Set <TEntity>();
 }
Example #2
0
 public Repository(CedroContext db)
 {
     Db    = db;
     DbSet = Db.Set <TEntity>();
 }