views:

58

answers:

1

We have three tables. TableA relates to TableB and TableB relates to TableC. Is it possible to create a new entity framework entity composed of all three tables without using a stored procedure or view?

It only seems to allow one level of mapping where we have two in this case.

Any help or tutorial appreciated.

A: 

Follow the "entity splitting" scenario from this MSDN page.

I'm interpreting "relates" as meaning they have the same primary key. If not, please edit and I'll update my answer.

Stephen Cleary
Standard 1 to manys. B has FK to table A's PK, C has FK to table B's PK. We have no relationships in the database. Our primary table for our entity is C, but we also need fields from B and A.
Chris