i am converting a linq2sql based project to entity framework . i am facing in issue setting the eager loading on the context (not in query) . just like i can set dataloadoptions in linq2sql in the context .
any idea ?
P.S
as i said i have to set it in the context and not in query.
No it is not possible. EF doesn’t allow this. If you want it you must try to roll your own solution which will hold eager loading definition somewhere and inject includes into query based on those stored definitions.