Turn Function or Stored Procedure Result into "live" Result for LINQ

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-06-01T22:17:26Z Indexed on 2010/06/01 22:23 UTC
Read the original article Hit count: 304

Filed under:
|
|
|
|

Is it possible to turn result sets obtained in LINQ through a stored procedure or function call into a "live" set of objects of which I can retrieve Foreign Key related objects?

If, for example, my stored procedure returns a set of rows (= LINQ objects) of type "Contact", then I can't seem to obtain Contact.BillingAddress (which is related by Foreign Key).

Any idea how to make this work?

© Stack Overflow or respective owner

Related posts about c#

Related posts about sql