O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

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

Basic LINQ

Image

You may have already used a version of LINQ. If you have, there won’t be much that’s new to you in this chapter; for the most part, LINQ is LINQ. But if it’s new to you, here is the basic syntax:

Image

Image Put On Your Thinking Hat

Here’s a simple entity that represents a supplier. Can you write a LINQ query that returns the entire entity where the company is in Kansas (“KS”) or Missouri (“MO”), ordered by the AddressCity?

(HINT: To specify to ...

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