When using Entity Framework Core, how can developers specify relationships like one-to-one, one-to-many, or many-to-many between entities?
- Fluent API
- Annotations
- Data Annotations
- Model Builder
Developers can specify relationships like one-to-one, one-to-many, or many-to-many between entities using the Fluent API in Entity Framework Core. The Fluent API provides a more flexible and explicit way to define relationships and configure various aspects of the database schema.
Loading...
Related Quiz
- You are building a small website using ASP.NET Core MVC. For displaying data to the users, which component of the MVC pattern should you focus on?
- To extend the default user store in ASP.NET Core Identity, one would typically implement the _________ interface.
- Application-specific settings, such as connection strings, can be added to the ________ file.
- While exploring a sample ASP.NET Core MVC project, you see a folder named "Controllers." What is the primary responsibility of files within this folder?
- Which default folder in an ASP.NET Core web application is used to store and serve static files like CSS, JavaScript, and images?