Test your Entity Framework knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/5Score 0
What is the purpose of a database "transaction" in the context of `SaveChanges()`, and how does EF Core typically handle transactions for a single `SaveChanges()` call?
Questions in this quiz
What is the purpose of a database "transaction" in the context of `SaveChanges()`, and how does EF Core typically handle transactions for a single `SaveChanges()` call?
What is Entity Framework (EF Core)?
What is the purpose of Fluent API configuration in Entity Framework, as an alternative/complement to data annotation attributes on entity classes?
What is LINQ (Language Integrated Query), and how is it commonly used with Entity Framework?
What is a "DbContext" in Entity Framework?
What is the difference between "eager loading" and "lazy loading" of related entities in Entity Framework?
What is "change tracking" in Entity Framework, and how does it relate to the `SaveChanges()` method?
What is "optimistic concurrency control" in Entity Framework Core (often implemented via a "concurrency token" / row-version column), and what problem does it address?
What does `AsNoTracking()` do when applied to an Entity Framework query, and when is it commonly used?
What does the `[Key]` data annotation attribute (or Fluent API's `HasKey()`) specify on an Entity Framework entity?
What is the "N+1 query problem" as it applies to Entity Framework, and how might `.Include()` help avoid it?
What is a `DbSet<T>` property on a DbContext, and what does it represent?