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