Back to list
Views:   6.8K
Replies:  1

Entity Framework Mapping

How do you map with the entity framework when there is more than 1 table? In the example they only map to 1 table. But what happens when you have to pull data from 2 or more tables and need to map the data? For example they are just passing a CategoryEntity which is just a table on in the .dmx file and mapping it to their business object class. what if you have multiple tables what do you pass?

Dennis Tucker, Mar 29, 2012
Reply 1

I'm not sure I understand your question, but in the .edmx file, you can add as many database tables, which turn into Entity Framework entities, as you want.  Then you can reference them all.

If you are talking about related tables (entities) to a table, the Entity Framework makes those relationships automatically.  When you reference an entity set and it has a relationship with other entities, there will be access to those relationships off of that entity.

Does that answer your question?


King Wilder
King Wilder, Apr 15, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.