c# - ObjectQuery.Include() all possible references -



c# - ObjectQuery<T>.Include() all possible references -

when using objectquery<t>.include() method, there simple way include all references?

for example:

return _ctx.conditions.include("subcondition") .include("subcondition.subcondition") .include("subcondition.subcondition.subcondition") …

where _ctx list<condition> , subcondition acts linked list of unknown length , guaranteed not repeat or loop.

based on overwhelming flood of responses, have concluded impossible - , seems such code cause problems. have gotten around creating recursive method loads each subcondition 1 @ time , reconnects them manually. hoping simpler way.

c# entity-framework

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -