O'Reilly logo

Code-First Development with Entity Framework by Sergey Barskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Self-test questions

Q1. You cannot get data from a view inside Entity Framework, true or false?

Q2. Which database method can be used to query and retrieve data using SQL statements?

  1. ExecuteSqlCommand
  2. Execute
  3. SqlQuery

Q3. You have to write all SQL Server stored procedures by hand if you want to map CRUD operations for an entity type to a set of stored procedures, true or false?

Q4. There is no downside to using the asynchronous API, true or false?

Q5. Which method can be used to asynchronously save changes in DbContext?

  1. SaveChanges
  2. SaveChangesAsync
  3. SaveChangesAsynchonously

Q6. What method needs to be called to mark a property as a concurrency property inside the entity type configuration class?

  1. RowVersion()
  2. HasDatabaseGenerationOption()
  3. IsRowVersion()

Q7. What ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required