Skip to content

Commit

Permalink
Modify NoResetOnClose check to include Multiplexing as a valid altern…
Browse files Browse the repository at this point in the history
…ative
  • Loading branch information
NinoFloris committed May 3, 2021
1 parent af9301c commit 06df9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Benchmarks/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public void ConfigureServices(IServiceCollection services)
case DatabaseServer.PostgreSql:
services.AddEntityFrameworkNpgsql();
var settings = new NpgsqlConnectionStringBuilder(appSettings.ConnectionString);
if (!settings.NoResetOnClose)
throw new ArgumentException("No Reset On Close=true must be specified for Npgsql");
if (!settings.NoResetOnClose && !settings.Multiplexing)
throw new ArgumentException("No Reset On Close=true Or Multiplexing=true implies must be specified for Npgsql");
if (settings.Enlist)
throw new ArgumentException("Enlist=false must be specified for Npgsql");

Expand Down

0 comments on commit 06df9c3

Please sign in to comment.