c# - EntityFramework ObjectQuery<T>.Include With Filter ability -


I am using ObjectQuery.CreateQuery () to create an eSQL query. I want to use ObjcetQuery. Include all related data to load, such as customer => command, EF to load all orders for customers at the same time. The issue is that I do not want all related objects and I want to get a condition with the result.

Any thoughts?

If you apply a master unit (client) only with related child institutions (order) If you intend, then it will not be included in it. The unit framework will not partially reduce the full size size. Instead, I recommend projecting in a new, anonymous type. Then you can include whatever orders you want.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -