C#.net MVC LINQ to SQL

I am creating a C#.net MVC application for the first time. I would like to use LinQ to SQL to interact with my database
My database is SQL Server 2008 and I will only be connecting to 1 table from my database.

Can someone give me some guidelines how to connect to the SQL database?
Who is Participating?
Kevin CrossConnect With a Mentor Chief Technology OfficerCommented:
Here is a nice tutorial on how to use LINQ.


Essentially when you establish that you are adding a LINQ-To-SQL class, you are prompted to setup the connection to SQL Server. Scott links to a few related articles, but probably an important one is the video walkthrough showing the process of getting started with LINQ:

Marcin_ZawadzkiConnect With a Mentor Commented:
Just create SQL 2 SQL Classes item to project and drag your table from server explorer into designer.
And your Linq 2 SQL is ready to work.
wademiAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.