Linqpad introduction, download, usage instructions

Source: Internet
Author: User

This section describes a linqpad tool used for LINQ operations and testing. I feel that this tool is very good, not only in terms of functionality, but also in use.

 

Linqpad official address: http://www.linqpad.net/

There are two running Modes on the right side of the page. One is integration into an executable program mode, and the other is installation mode.

 


 

 

Here is an example. Description.

 

The interface can be roughly divided into four separate PANES:

(1) The upper left part of the connection is used to connect to the data source that can be made of LINQ. There are many data source types. By adding a connection, you can see that you can add linqtosql or the WCF Service, it can also be another data source.

 

(2) The upper right part is the query window, which is the part of code writing. You can select a language or a database. Similar to the database query analyzer.

In the language list, select:

Take the data in the MERs table as an example.

(1) C # expression

Used for linqsql Query

From C in customers select C

 

(2) C # statement

Used for C # statement Query

VaR P = from C in customers select C;
P. Dump ();

 

Dump can display the query results.

(3) C # Program

Used to support methods and types of queries. The main method must be defined.

Void main ()
{
VaR P = from C in customers select C;
P. Dump ();
}

 

(4) SQL

Traditional SQL queries

Select * from customer

 

In the first three methods, the table name of the database table to be queried is set to + S in the connection window by default. note this in linqpad.

(5) esql and VB are ignored.

 

(3) Some teaching examples and saved queries are shown in the lower left part.

Some parameters of linqpad can be set here, or some examples can be used here.

(4) the bottom right part is the query result window.

There are four tabs. You can view the results, SQL, and IL.

 

The statement mode (C # statement) is recommended for use ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.