|
|
@ -12,7 +12,14 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
public partial class PostgreSQLProvider : AdoProvider |
|
|
|
{ |
|
|
|
public PostgreSQLProvider() { } |
|
|
|
public PostgreSQLProvider() |
|
|
|
{ |
|
|
|
if (SugarCompatible.IsFramework == false) |
|
|
|
{ |
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true); |
|
|
|
} |
|
|
|
} |
|
|
|
public override IDbConnection Connection |
|
|
|
{ |
|
|
|
get |
|
|
|