This is fourth part of the "LINQ" series of articles that I have started from here. And in this article, you will learn how to setup a demo project to explore LINQ queries. I will use my preinstalled "Northwind" database that you can download from here and install it in SQL Server Management Studio.
Video here:
Now, follow the steps to setup a demo project to explore LINQ queries. Before creating the new project, setup a "Northwind" database in SQL Server Management Studio.
Step 1: Creating the New Project
Open the Visual Studio instance and create a new project New > Project > Console Application and name the project whatever you wish.
Step 2: Adding LINQ to SQL Classes
Now, in the Solution Explorer add a new item "LINQ to SQL Classes" using a nice name like "DataNorthwind.dbml".
This will add all required libraries as well as classes to your project for database communication. Actually, this DBML file will become a layer between the DB and your project and provide you all the IntelliSense features.








Join the conversation! Your thoughts help the community grow.