O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modelling split entities

A split entity is a single logical entity that’s stored in multiple database tables. That doesn’t really make sense in an OOP environment: All of the properties of an entity should be properties of that entity.

Here’s the model the wizard creates from the split entity schema. You really want the properties of the SplitCustomerBusinessAddress entity included in the SplitCustomer entity.

Image

If you think about what you’d like to do, you just want to paste the properties from one entity to the other and delete the original entity, right? Well, that’s exactly what you can do in the designer—select the properties in one entity, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required