File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,7 @@ private WebApplicationFactory<TStartup> CreateFactory()
83
83
84
84
services . AddDbContext < TDbContext > ( options =>
85
85
{
86
- options . UseNpgsql ( dbConnectionString , builder =>
87
- // The next line suppresses Entity Framework Core Warning:
88
- // "Compiling a query which loads related collections for more than one collection navigation
89
- // either via 'Include' or through projection but no 'QuerySplittingBehavior' has been configured."
90
- // We'd like to use `QuerySplittingBehavior.SplitQuery` because of improved performance, but unfortunately
91
- // it makes Entity Framework Core 5 crash on queries that load related data in a projection without Include.
92
- // This is fixed in Entity Framework Core 6, tracked at https://github.com/dotnet/efcore/issues/21234.
93
- builder . UseQuerySplittingBehavior ( QuerySplittingBehavior . SingleQuery ) ) ;
86
+ options . UseNpgsql ( dbConnectionString , builder => builder . UseQuerySplittingBehavior ( QuerySplittingBehavior . SplitQuery ) ) ;
94
87
95
88
#if DEBUG
96
89
options . EnableSensitiveDataLogging ( ) ;
You can’t perform that action at this time.
0 commit comments