Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Add EnableLegacyCaseInsensitiveDbParameters Npgsql switch for v6 mi…
Browse files Browse the repository at this point in the history
…gration.
  • Loading branch information
Layoric committed Nov 11, 2021
1 parent 9cf865b commit 71ba1f5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public PostgreSqlDialectProvider()

#if NET6_0
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
AppContext.SetSwitch("Npgsql.EnableLegacyCaseInsensitiveDbParameters", true);
RegisterConverter<DateOnly>(new PostgreSqlDateOnlyConverter());
#endif

Expand Down

0 comments on commit 71ba1f5

Please sign in to comment.