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?
wademiAsked:
Who is Participating?
 
Kevin CrossConnect With a Mentor Chief Technology OfficerCommented:
Here is a nice tutorial on how to use LINQ.

http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx

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:
http://www.scottgu.com/blogposts/video/linqtalk1.wmv

Kevin
0
 
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.
0
 
wademiAuthor Commented:
deff
0
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.