Hey guys,
Is there anyway to make a dynamic fetch in entity framework 4
If you have some inheritcance where a and b inherit from c
Can you call one linq query to get a list of a, and b using the data set for c?
Hey guys,
Is there anyway to make a dynamic fetch in entity framework 4
If you have some inheritcance where a and b inherit from c
Can you call one linq query to get a list of a, and b using the data set for c?
Do you mean ...
context.C // all C's (including all A's and all B's)
context.C.OfType<A>() // all A's
context.C.OfType<B>() // all B's