ANKO Code Academy
AI-Native Coding Learning Platform
Courses
Labs
Discussions
quiz
Project Setup & Domain Design Quiz
Question 1 of 14
Score: 0/14
When a Parcel entity has two foreign keys (ShipperAddressId and RecipientAddressId) both pointing to the Address table, what must you do in EF Core?
Nothing, EF Core resolves multiple relationships automatically
Configure each relationship explicitly with the Fluent API, specifying HasOne/WithMany and the foreign key
Create two separate Address tables, one for shippers and one for recipients
Add a [ForeignKey] attribute and EF Core handles the rest
Check Answer
Previous
Next Topic