In Fluent API, the ________ method is used to define a one-to-one relationship between two entities.
- HasForeignKey
- HasOne
- HasOne
- WithOne
In Fluent API, the WithOne method is used to define a one-to-one relationship where the current entity is the principal entity in the relationship.
Loading...
Related Quiz
- Complex types in Entity Framework can be queried using ________ when they are not directly exposed in the DbContext.
- In which approach do you create database tables directly from your code models?
- In an advanced scenario, how can you customize the mapping of inheritance hierarchies beyond the default strategies provided by Entity Framework?
- Describe the process of implementing a custom caching provider in Entity Framework.
- In the context of inheritance, what role does the Discriminator column play in Entity Framework?