Skip to content

Commit

Permalink
Missed One Commit (dotnet-architecture#65)
Browse files Browse the repository at this point in the history
* Cleaning up Checkout auth

* Mapping order items to backing field properly in DbContext
  • Loading branch information
ardalis authored Oct 23, 2017
1 parent 4a549c3 commit 101b7ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Infrastructure/Data/CatalogContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ private void ConfigureCatalogType(EntityTypeBuilder<CatalogType> builder)

private void ConfigureOrder(EntityTypeBuilder<Order> builder)
{
var navigation = builder.Metadata.FindNavigation(nameof(Order.OrderItems));

navigation.SetPropertyAccessMode(PropertyAccessMode.Field);

builder.OwnsOne(o => o.ShipToAddress);
}

Expand Down

0 comments on commit 101b7ba

Please sign in to comment.