In Entity Framework Code-First approach, how is the mapping between entity classes and database tables typically configured?

  • By applying attributes such as [Table] and [Column] directly to the entity classes
  • By configuring mapping settings in the web.config file
  • By creating custom mapping classes
  • By using Fluent API in the DbContext class
In Entity Framework Code-First approach, the mapping between entity classes and database tables is typically configured using Fluent API in the DbContext class. This allows developers to define the mappings programmatically, giving more flexibility and control over the mapping configurations.
Add your answer
Loading...

Leave a comment

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