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

Chapter 4. Querying, Inserting, Updating, and Deleting Data

In this chapter, we will learn how to query data in your database using Entity Framework and LINQ. We will understand the details of query life cycle. We will see how to use eager and lazy loading. We will also study how to sort and filter data. You will learn the use of relationships in our queries. We will add, update, and delete data in the database using multiple approaches for each operation.

In this chapter, we will cover the following topics:

  • How to use a method and the query syntax with LINQ
  • How to filter and sort data in your queries
  • Learn the pitfalls and advantages of lazy and eager loading
  • Cover multiple approaches for data manipulation

The basics of LINQ

Language INtegrated Query ...

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