Skip to content

Exception On SaveChanges when Audit.Net Entity framework have High-Level Interceptions #679

Closed Answered by thepirat000
DiegoQuirosT asked this question in Q&A
Discussion options

You must be logged in to vote

The constructor of your DbContext requires one parameter of type DbContextOptions<AppDBC>.

Try changing this line

.UseDbContext<AppDBC>()

To something like this:

.UseDbContext<AppDBC>(new DbContextOptionsBuilder<AppDBC>().UseSqlServer("YourConnectionString").Options)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DiegoQuirosT
Comment options

@thepirat000
Comment options

Answer selected by DiegoQuirosT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants