Hangfire.EntityFrameworkCore icon indicating copy to clipboard operation
Hangfire.EntityFrameworkCore copied to clipboard

How to use not user provided db context?

Open artworkad opened this issue 3 years ago • 0 comments

Can you add more documentation on how this library is supposed to work? At first I expected it to expose the DbContext so that I can do the following:

Jobs = await _context.Jobs
  // Do more fluent stuff
  .ToListAsync(cancellationToken)

But I could not find any way to achieve that. I am interested in having access to the context, so that I can use IQueryable. I also tried my own DbContext, but was getting SqlException: Invalid object name 'HangfireCounter'.

artworkad avatar Dec 13 '21 17:12 artworkad