Skip to content

Commit 615bd26

Browse files
authored
Merge pull request #127 from improvgroup/copilot/fix-code-scanning-alert
Implement AsSplitQuery support in AsSplitQueryEvaluator
2 parents 41b6f5c + a5157f2 commit 615bd26

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

SharedCode.Data.EntityFramework/Specifications/Evaluators/AsSplitQueryEvaluator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
namespace SharedCode.Data.EntityFramework.Specifications.Evaluators;
33

4+
using Microsoft.EntityFrameworkCore;
5+
46
using SharedCode.Specifications;
57
using SharedCode.Specifications.Evaluators;
68

@@ -33,7 +35,7 @@ public IQueryable<T> GetQuery<T>(IQueryable<T> query, ISpecification<T> specific
3335

3436
if (specification.AsSplitQuery)
3537
{
36-
//query = query.AsSplitQuery(); // TODO: Support for split query is not in the current EF Core version. See https://github.com/dotnet/efcore/issues/21234
38+
query = query.AsSplitQuery();
3739
}
3840

3941
return query;

0 commit comments

Comments
 (0)