sl8er
EF Core Many-to-One (Many Owned Entity to Non-owned Entity)
I don't really need an identifier for
Address
. It should have value object semantics.
With it being owned, I can hide the fact that there still is an address_id
being generated in the underlying table (as required by the One-to-Many relationship between Customer
and Address
. Otherwise I'd have to specify AddressId
in Address
?6 replies