Query document allows you to create and execute LINQ or ESQL queries against your model, so you can test it before using in your application.
Query document can be opened in several ways. For example:
1. | Click Create New Query button on the Standard toolbar. |
2. | Open a query file by choosing Open Query from the File menu. |
You can open multiple Query documents to view code and copy and paste among them. A list of all open documents is available in the Windows menu.
Query document consists of two parts. The upper part is a code editor for editing query code. The statements are colorized so you can easily read them.
The lower part has three tabs: Data, Errors, and SQL.
Data tab contains the data, returned by the query. For information about working with data see the How To: View and Edit Data topic.
Errors tab contains information about errors, occurred when trying to execute the query.
SQL tab contains the actual SQL code that was executed.