Link to home
Start Free TrialLog in
Avatar of saloj
salojFlag for Canada

asked on

ASP.NET MVC data accessing using Linq to sql prodecure

HI Experts,
I am using ASP.NET MVC for my website and trying to get data from database. I have already created SQL procedure on SQL Server 2005 and I would like to use Linq to sql procedure to get data and display on web site.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of himanshut
himanshut
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FredTang
FredTang

Avatar of Fernando Soto
Hi saloj;

If you have not already created a OR/M, Object Relational Model yet you will needed to create one. In Solution Explorer right click on the project name and select Add -> New Item and from the Add New Item dialog box select Linq to SQL Classes give the model a name and click Add button. Once the design surface opens drag the tables and the Stored Procedure from the Server Explorer window on to the design surface and save your work. At this point you are now ready to write Linq to SQL queries.

Fernando