O'Reilly logo

Pro Visual Studio LightSwitch 2011 Development by Yann Duran, Tim Leung

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

C H A P T E R  6

Querying Data

Along with creating tables and building screens, writing queries forms a key part of building a LightSwitch application. Queries enable you to filter data, and the results can be consumed by screens or other UI elements.

LightSwitch provides a designer that allows you to graphically build a query. For more-complex scenarios, you often need to extend queries by writing code. This chapter introduces you to the graphical designer, describes how you can extend queries by writing LINQ code, and shows you what happens inside the query pipeline.

Understanding Query Features

We’ll start this chapter by describing some of the characteristics and features of queries in LightSwitch. The easiest way for you to create a 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