You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A foreign key is required for 1-to-1, because a Patch Relationship request must not change the identity of a resource.
27
28
builder.Entity<Order>()
28
29
.HasOne(order =>order.Shipment)
29
30
.WithOne(shipment =>shipment.Order)
30
-
// Without specifying "OrderId", the primary key will be used as a foreign key which would result in attempt to update the shipment identity when this relationship is patched.
0 commit comments