File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/JsonApiDotNetCore/Configuration Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
<PropertyGroup >
3
3
<TargetFrameworkName >net6.0</TargetFrameworkName >
4
4
<AspNetVersion >6.0.*</AspNetVersion >
5
- <EFCoreVersion >6.0.1 </EFCoreVersion >
5
+ <EFCoreVersion >6.0.* </EFCoreVersion >
6
6
<EFCorePostgresVersion >6.0.*</EFCorePostgresVersion >
7
7
<MicrosoftCodeAnalysisVersion >4.*</MicrosoftCodeAnalysisVersion >
8
8
<HumanizerVersion >2.*</HumanizerVersion >
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ public sealed class JsonApiOptions : IJsonApiOptions
102
102
}
103
103
} ;
104
104
105
+ static JsonApiOptions ( )
106
+ {
107
+ // Bug workaround for https://github.com/dotnet/efcore/issues/27436
108
+ AppContext . SetSwitch ( "Microsoft.EntityFrameworkCore.Issue26779" , true ) ;
109
+ }
110
+
105
111
public JsonApiOptions ( )
106
112
{
107
113
_lazySerializerReadOptions = new Lazy < JsonSerializerOptions > ( ( ) => new JsonSerializerOptions ( SerializerOptions ) , LazyThreadSafetyMode . PublicationOnly ) ;
You can’t perform that action at this time.
0 commit comments