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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *