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