Test your Entity Framework knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/12Score 0
What is the purpose of Fluent API configuration in Entity Framework, as an alternative/complement to data annotation attributes on entity classes?
In this round
What is the purpose of Fluent API configuration in Entity Framework, as an alternative/complement to data annotation attributes on entity classes?
What is a "DbContext" in Entity Framework?
What does `dotnet ef migrations add <MigrationName>` (a common EF Core CLI command) do?
What is LINQ (Language Integrated Query), and how is it commonly used with Entity Framework?
What is a "migration" in Entity Framework Core?
What does the `[Key]` data annotation attribute (or Fluent API's `HasKey()`) specify on an Entity Framework entity?
What is a "seed data" configuration in Entity Framework Core, and what is it typically used for?
What is the general tradeoff of using an ORM like Entity Framework (writing LINQ queries against C# entity objects) compared to writing raw SQL directly for database access?
What is a "navigation property" in an Entity Framework entity class, e.g. a `Post` entity having a `public User Author { get; set; }` property?
What does `AsNoTracking()` do when applied to an Entity Framework query, and when is it commonly used?
What is a "migration rollback" (or reverting to a previous migration) in EF Core, and why might a team need this capability?