mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user