All quizzes
Free quiz · 20 questions in the bank

Entity Framework quiz

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
  1. What is the purpose of Fluent API configuration in Entity Framework, as an alternative/complement to data annotation attributes on entity classes?
  2. What is a "DbContext" in Entity Framework?
  3. What does `dotnet ef migrations add <MigrationName>` (a common EF Core CLI command) do?
  4. What is LINQ (Language Integrated Query), and how is it commonly used with Entity Framework?
  5. What is a "migration" in Entity Framework Core?
  6. What does the `[Key]` data annotation attribute (or Fluent API's `HasKey()`) specify on an Entity Framework entity?
  7. What is a "seed data" configuration in Entity Framework Core, and what is it typically used for?
  8. 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?
  9. What is a "navigation property" in an Entity Framework entity class, e.g. a `Post` entity having a `public User Author { get; set; }` property?
  10. What does `AsNoTracking()` do when applied to an Entity Framework query, and when is it commonly used?
  11. What is a "migration rollback" (or reverting to a previous migration) in EF Core, and why might a team need this capability?
  12. What is Entity Framework (EF Core)?
Gaps to close?
Read the curated Entity Framework notes — core concepts, patterns, interview prep.
Entity Framework notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka