Establishing inheritance

There are several ways to establish inheritance between entities in a model, but the easiest is just to specify the base class in the Properties Window. You do need to remember to delete the unnecessary relationships and properties, though. Otherwise, the Entity Model Designer gets its little self confused.

Image
Image
Image

Image Put On Your Thinking Hat

Give it a try!

 

Image Add a new model to your project and use the wizard to add the three “TPT” tables to it.

Image Using the Properties Window set the base type of TPTBakedGood to TPIngredient.

Image Delete the unnecessary properties and the original association between TPTBakedGood and TPTIngredient.



Image Thinking Hat

How’d you do? Here are the final model and the Mapping Details Window for the TPTBakedGood Entity:

Image
Image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset