public GenericRepository(HostBooksContext context)
 {
     _DbContext  = context;
     this._DbSet = this._DbContext.Set <T>();
 }
Example #2
0
 public UsersController(HostBooksContext context, IUsers users) //, IUsers users
 {
     _context     = context;
     _userService = users;
 }
Example #3
0
 public UnitOfWork(HostBooksContext context)
 {
     _context  = context;
     _objectId = Guid.NewGuid();
 }