EntityFramework.Docs icon indicating copy to clipboard operation
EntityFramework.Docs copied to clipboard

Faulty code example for storing owned types in separate tables

Open GeroIwan opened this issue 8 years ago • 1 comments

The code example for storing owned types in separate tables has to be:

modelBuilder.Entity<Order>().OwnsOne(p => p.OrderDetails, od =>
    {
        od.OwnsOne(c => c.BillingAddress);
        od.OwnsOne(c => c.ShippingAddress);
        od.ToTable("OrderDetails");
    });

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

GeroIwan avatar Aug 22 '18 07:08 GeroIwan

@GeroIwan Thanks.

ajcvickers avatar Aug 23 '18 17:08 ajcvickers