In Entity Framework, the concept of ___________ allows you to customize how properties in an entity map to columns in a database table.

  • Code-First Migrations
  • Data Annotations
  • Entity Framework Code-First
  • Entity Framework Core
In Entity Framework, the concept of "Data Annotations" allows you to customize how properties in an entity map to columns in a database table. Data Annotations provide a way to override the default mapping behavior by specifying attributes directly on your entity classes. Examples include [Key] to define a primary key, [Column] to specify column names, and [MaxLength] to set column length constraints.
Add your answer
Loading...

Leave a comment

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