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