Skip to content

Commit

Permalink
Merge pull request #26 from netcorepal/v2
Browse files Browse the repository at this point in the history
使用范型DbContextOptions,以避免存在多个DbContext类型时出错
  • Loading branch information
witskeeper authored Dec 13, 2024
2 parents 16915fc + 5de0b2b commit 22c6d3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace ABC.Template.Infrastructure
{
public partial class ApplicationDbContext(DbContextOptions options, IMediator mediator, IServiceProvider provider)
public partial class ApplicationDbContext(DbContextOptions<ApplicationDbContext> options, IMediator mediator, IServiceProvider provider)
: AppDbContextBase(options, mediator, provider)
{

Expand Down

0 comments on commit 22c6d3c

Please sign in to comment.