|
@@ -74,6 +74,8 @@ internal static class StartupExtensions
|
|
|
|
|
|
//sqlsugar
|
|
|
services.AddSqlSugar(configuration, "Sharing");
|
|
|
+ AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
|
|
+ AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
|
|
|
|
|
|
//cache
|
|
|
services.AddCache(d =>
|