Linq to SQL - LoadWith used to load multiple child tables.
Posted
by Adam Walsh
on Stack Overflow
See other posts from Stack Overflow
or by Adam Walsh
Published on 2009-02-26T02:38:07Z
Indexed on
2010/05/31
15:33 UTC
Read the original article
Hit count: 886
linq-to-sql
Here's what I'm doing:
opts.LoadWith<Job>(j => j.Questions);
opts.LoadWith<Job>(j => j.Categories);
I keep getting an error that "Specified cast is not valid."
However, if I do either of the alone, it works!
© Stack Overflow or respective owner