Example #1
0
 public Repository(LibContext context)
 {
     _context = context;  // Dependency Injection
     dbSet    = _context.Set <Entity>();
 }
Example #2
0
 public PublishersRepository(LibContext context) : base(context)
 {
 }
Example #3
0
 public BooksRepository(LibContext context) : base(context)
 {
 }