sl8er
sl8er
CC#
Created by sl8er on 5/27/2023 in #help
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
CC#
Created by sl8er on 5/27/2023 in #help
EF Core Many-to-One (Many Owned Entity to Non-owned Entity)
Well, I guess I do? I don't need to access Address outside the context of a Customer.
6 replies