Filtering Data with Queries

Queries in LightSwitch let you work with a subset of data. For example, instead of displaying all customers, you can use a query to display only those customers in a certain country or region.

In this set of lessons you will learn how to create both simple and parameterized queries and apply them to screens.

Note

These lessons build upon the My First Application project that you last modified in the Customizing the Running Application lesson. If it is not already open, open it from the File, Open Project menu.

Lessons

Title

Description

Creating a Basic Query

Shows you how to create a basic query in the Query Designer.

Creating a Screen Based on a Query

Shows you how to create a screen to display the results of a query.

Creating a Parameterized Query

Shows you how to create a query that includes a value determined at run time.

Using a Parameterized Query on a Screen

Shows you how to display the results of a parameterized query.

See Also

Concepts

LightSwitch Guided Tour

Other Resources

Queries: Retrieving Information from a Data Source