Closed Myster closed 4 years ago
I would assume this wouldnt work with this trimmer and needs to be developed. This trimmer is still at its "very" early stages and was only to initially reduce it down to standalone entities. I will have a look at it and see what element will need to be saved in the salesOrderHeadersV2 entity.
@shashisadasivan #5 is addressing exactly this issue.
Issue fixed https://stackoverflow.com/a/58280175/258053 Thankyou @Ievgenm
Given this code: eg: var result = context.SalesOrderHeadersV2.Expand(x=>x.SalesOrderLines).Take(1).ToList(); If I trim my EDMX this will not work. If I do not trim my EDMX this does work.
Both the SalesOrderHeadersV2, and SalesOrderLines are listed in my call to edmxTrimmer list of entities to keep.
I created a Stack overflow issue here: https://stackoverflow.com/questions/58263897/microsoft-odata-client-expand-does-not-populate-the-model