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, ...

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.