The Fluent API provides more configuration options compared to data annotations and is configured in the _________ method of the DbContext.

  • OnModelCreating
  • ConfigureOptions
  • DbContextSetup
  • ModelOptions
The Fluent API in Entity Framework Core provides advanced configuration options for defining the database schema and behavior of your entities. It is configured in the OnModelCreating method of the DbContext class. Using the Fluent API, you can customize table names, define composite keys, configure relationships, and perform various other advanced configurations that may not be possible with data annotations alone.
Add your answer
Loading...

Leave a comment

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