What do you use in Entity Framework Core to represent and configure the database tables and relationships?
- Data Annotations and Fluent API
- HTML and CSS
- JavaScript
- SQL Queries
In Entity Framework Core, you use both Data Annotations and Fluent API to represent and configure the database tables and relationships. Data Annotations provide a way to define metadata directly in your entity classes using attributes, while Fluent API allows you to configure the database schema and relationships using a fluent and code-based approach. This flexibility allows for fine-grained control over the database mapping.
Loading...
Related Quiz
- If a developer wants to include client-side libraries in their project, they would modify the ________ file in an ASP.NET Core project.
- While browsing your application, you notice that both /products and /products/index URLs lead to the same content. What might be causing this behavior in terms of attribute routing?
- While setting up an ASP.NET Core project, you want to ensure that your application can serve images and other static files. Which middleware should you configure?
- When considering zero-downtime deployments, which deployment strategy involves routing traffic gradually to the new version of the application?
- The ________ folder in an ASP.NET Core project is specifically designated for storing the compiled output of the application.