One of my projects is in EF core 3.1. This uses the Devart Oracle provider. Now I need to upgrade this project into EF Core 5. In a POC I found that using devart the split query feature is not working as demonstrated in the document. The code snippet is given below.
var order = context.PURORDMAINs
.Include(p => p.PURORDDETs)
.AsSplitQuery()
.ToList();
The query is generated using AsSplitQuery()
is like FROM PURORDMAIN AS p ORDER BY p.ORDCODE ASC
. This is then only query generated in the console. But if not use AsSplitQuery()
then it generates query like FROM PURORDMAIN AS p LEFT JOIN PURORDDET AS p0 ON p.ORDCODE == p0.ORDCODE ORDER BY p.ORDCODE ASC, p0.CODE ASC
.
Am I doing something wrong? Any type of help is appreciable. Thanks in advance.