Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

So What Happened?

When we changed the database and then updated the model, the wizard didn’t do what you probably expected it to do. (It certainly came as a surprise to me when I was learning the Entity Framework, but you’re probably smarter than I am.)

What the wizard did was update the SSDL to reflect the changes in the database and update the MSL so that nothing in the conceptual model was mapped to a nonexistent database fields, but it otherwise maintained the conceptual model as we’d designed it.

Right-click on a blank area of the primary design surface and choose Mapping Details from the context menu. By default, the Mapping Details window will appear below the primary design surface. If you select the Recipe entity, you can see what’s happened:

If you select the WeightByUnit entity, you’ll see that the Mapping Details window is completely empty. None of the properties of this entity are mapped to the database any longer:

  • + Share This
  • 🔖 Save To Your Account