Get the App
SLTechnology News&Howtos  ›  Development  › 

How to build a LINQ ASP.NET website

Shulou Source: shulou.com Published: 2022-06-02 08:59:51 10月01日 Update

Editor to share with you how to build a LINQ ASP.NET website, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

One of the new things that excites me recently is the emergence of a series of LINQ technologies, including LINQ,DLINQ,XLINQ and others soon after.

LINQ will be fully integrated into the next version of Visual Studio, codenamed Orcas, and it also includes some very cool framework and tool support, including full IntelliSense and visual designer support. You can download the May CTP version of LINQ released last week here. The highlight of this CTP version is that it runs on VS 2005, allowing you to start delving into LINQ immediately. It implements feedback from many users (for example, adding support for stored procedures in DLINQ) and includes a built-in ASP.NET site project template to help you use it in ASP.NET (Note: you can also use LINQ in VS 2005 Web Application Project).

I will publish a series of articles over the next few weeks to introduce how to use LINQ/DLINQ/XLINQ in ASP.NET projects. The following demonstration will help you understand some of the important basic concepts of LINQ. You can download the May CTP version of LINQ and enter the code step by step as the article progresses (I'll list all the code below), or you can download and run the complete .zip file of my example here (note: you still need to download the May version of LINQ to run the example in the .zip file).

Note: both C# and VB fully support LINQ,DLINQ and XLINQ. I will use C # in the following example.

Set up a LINQ ASP.NET website

To build an ASP.NET website that can use LINQ/DLINQ/XLINQ and the new Cellular 3.0 language features, select File-> New website in VS and select "LINQ ASP.NET Web Site Template"

Notice that it introduces some LINQ assemblies in the\ bin folder. It also adds some configurations to the web.config file to tell VS and ASP.NET to use the C # 3.0 compiler to compile and run the program:

Note that the C # 3.0 compiler and CodeDOM provider can run side by side with the C # 2.0 version, so you don't have to worry about installing LINQ to break VS or ASP.NET.

The above is all the contents of the article "how to build a LINQ ASP.NET website". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Websites files clips run support May articles help compilation code content that is technology articles versions examples programs compilers fresh exciting Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MySQL OPPO Reno Apple NVidia