Skip to content

Commit

Permalink
fix(ef): configure second db context
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Oct 13, 2023
1 parent 08a2192 commit bbb2d91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class MultipleDbContextsTestScope : EFTestScope
protected override IHostApplicationBuilder ConfigureApplication(IHostApplicationBuilder hostBuilder, string name)
{
base.ConfigureApplication(hostBuilder, name);
AddDbContext<SecondTestDbContext>(hostBuilder, name);
AddDbContext<SecondTestDbContext>(hostBuilder, name, configurePostgres: ConfigurePostgresDatabaseModule);
hostBuilder.AddEFRepositories<MultipleDbContextsTestScope>();
return hostBuilder;
}
Expand Down

0 comments on commit bbb2d91

Please sign in to comment.