4. Complex Models

So far we’ve looked at how Entity Framework addresses the impedance mismatch problem, the way the Entity Model Wizard creates and updates a model based on a database schema (which, you’ll recall, is only one way to do it), and the tools the Entity Framework Designer provides for tweaking the conceptual model and how the conceptual entities map to objects in the database.

What we haven’t done is make any architectural changes to the conceptual model the wizard created. (Changing a name or deleting an entity here or there doesn’t count.) All of our entities have mapped directly to individual tables in the database. In practice, that will actually be true most of the time. Well, some of the time. Okay. It’s true occasionally. It’s ...

Get Fluent Entity Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.