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. Which of the following is NOT a syntax supported by LINQ?

  1. Method.
  2. SQL.
  3. Query.

Q2. If you retrieve an entity via LINQ from a database, make changes to it and call SaveChanges, all properties are updated in the database, not only the changed ones, true or false?

Q3. In order to sort the data by multiple properties, you simply need to call OrderBy multiple times in LINQ that is using the method syntax, true or false?

Q4. How to add two filter conditions to a LINQ query with the query syntax?

  1. Use multiple Where calls.
  2. Use logical AND operator.
  3. Issue two queries.

Q5. You want to add multiple new entities to DbSet. How can you accomplish this?

  1. By calling the Add method and passing an instance of the class specified in the context property. ...

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