Updating the model

Image

Stuff changes. It’s a basic fact of our profession, and you’ve learned to expect and plan for that, right? Right? Well, even if you haven’t, the designers at Microsoft have, and they’ve built the Entity Model Wizard to allow you to be able to update the model when the database schema changes, or when you need to add additional database objects to your model. To see how that works, let’s start by making a minor change to the database:

Image

In the Server Explorer (choose Server Explorer from the Windows menu if it’s not visible), ...

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.