Stored procedures with joins and entity mapping RRS feed

  • Question

  • Let's say I have two tables EmailAddresses and Members, and thus a Member entity and an EmailAddress entity.  Now I define a stored proc that takes a member id and joins against the EmailAddresses table pulling back all columns from both tables.  Is there any way to get LINQ to SQL to return a type that either contains or acts like both the entities?

    From looking at the generate code, I think the answer is no, but would be happy to misunderstand something.

    Monday, March 22, 2010 8:13 PM


All replies