Programmeur
Description
Visual LINQ Query Builder is a Visual Studio 2008 designer that helps you building Linq to Sql queries visually. It is functionally the same experience you had using the Microsoft Access query builder for example but in the Linq domain. The entire UI of this add-in is using Windows Presentation Foundation. The goal of this tool is to help you getting more familiar with the Linq syntax.
It's also a project that could help you to see how to start a Visual Studio 2008 add-in using Windows Presentation Foundation.
Using the query bag and the query designer
Using the query bag
The query bag is the main interface of the query designer. It enables you to manage a list of queries in your project. From the query bag, you can do the following: * Create a new query. Click the Create new query button to go to the query designer and create the query. * Edit a query. Click the Edit query button to go to the query designer and edit the query. * Delete a query. * Group queries by type, the two types being VLinq-generated queries and custom-written queries. See "Custom queries" below. * Select a query. The selected query is used for Edit, Delete, and Preview actions. You can also edit the selected query's properties, including the name and the description, in the Properties window. * Preview a query. First you have to expand the Preview toolbar by clicking the Preview button. The preview pane appears at the bottom of the designer. You can then click the Run button. The designer runs the query according to the provider configuration. (See "Preview and test requirements" below.) Now the preview pane provides three tabs: * Results. The result of the query displayed in a data grid. * SQL. The generated SQL string. * Generated code. The generated code (C# and Visual Basic). * Run testing. First you have to expand the Testing toolbar by clicking the Testing button. A Test column appears in the