Missed One Commit (#65)
* Cleaning up Checkout auth * Mapping order items to backing field properly in DbContext
This commit is contained in:
@@ -95,6 +95,10 @@ namespace Infrastructure.Data
|
||||
|
||||
private void ConfigureOrder(EntityTypeBuilder<Order> builder)
|
||||
{
|
||||
var navigation = builder.Metadata.FindNavigation(nameof(Order.OrderItems));
|
||||
|
||||
navigation.SetPropertyAccessMode(PropertyAccessMode.Field);
|
||||
|
||||
builder.OwnsOne(o => o.ShipToAddress);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user