shashisadasivan / EDMXTrimmer

D365 Finance and operations EDMX trimmer
MIT License
21 stars 12 forks source link

Expand does not work after trimming #4

Closed Myster closed 4 years ago

Myster commented 4 years ago

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

shashisadasivan commented 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.

Ievgenm commented 4 years ago

@shashisadasivan #5 is addressing exactly this issue.

shashisadasivan commented 4 years ago

Issue fixed https://stackoverflow.com/a/58280175/258053 Thankyou @Ievgenm