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.
Loading...
Related Quiz
- When working with disconnected data in ADO.NET, what is the purpose of the RowVersion column in a DataTable?
- Scenario: In Entity Framework, you need to update a record only if it meets certain conditions. How can you achieve this while updating data in EF?
- Connection pooling in ADO.NET helps in ___________ database connections for better performance.
- DataRelations are used to define ___________ between DataTables in a dataset.
- Which LINQ to SQL operation is used to delete records from a database table?