How do I check if a Linq to SQL entity has grandchildren?
Posted
by EdenMachine
on Stack Overflow
See other posts from Stack Overflow
or by EdenMachine
Published on 2010-06-17T13:33:47Z
Indexed on
2010/06/17
14:03 UTC
Read the original article
Hit count: 251
linq-to-sql
How can I find out if a Linq to SQL entity has grandchildren or not?
Pseudo-code below:
Return From p In dc.Processes Where p.Signers.Count > 0 and p.Signers.Signatures.Count > 0
Obviously I can't run the code above but I need to make sure that all the returning Processes have at least one Signer and that all of those Signers have at least one Signature.
TIA!
© Stack Overflow or respective owner