mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
-
This commit is contained in:
@@ -14,11 +14,10 @@ namespace SqlSugar
|
||||
{
|
||||
public PostgreSQLProvider()
|
||||
{
|
||||
if (SugarCompatible.IsFramework == false)
|
||||
{
|
||||
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
|
||||
}
|
||||
|
||||
}
|
||||
public override IDbConnection Connection
|
||||
{
|
||||
|
Reference in New Issue
Block a user