How Do I: LINQ to SQL: Using Stored Procedures

Using existing stored procedures and functions is easy with LINQ. We simply drag the stored procedures onto the O/R mapping surface and call them from the generated Data Context object.

Presented by Scott Stanfield

Duration: 9 minutes, 18 seconds

Date: 10 January 2008

Watch the video   |   Download the video   |   Get the code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 5

Leave a Comment

przemeklach : On March 25, 2008 12:51 AM said:

Hi,

Couple questions:

It seems like you can make powerful queries without using stored procedures, at what point do you decided to use stored procedures?

Does using LINQ break the MVC model? It seems like you are mixing parts of the controller with the model.

Thanks

grimrist : On July 10, 2008 2:20 PM said:

I use stored procedures mainly because we have them created already. I would imagine only using stored procedures if they are available and are at your disposal. Why reinvent the wheel when they are already there for you.

Myself on the otherhand, likes to reinvent the wheels.

cv_vikram : On August 18, 2008 10:56 AM said:

thanks....

iscott : On August 28, 2008 1:52 AM said:

The major reason for using stored procedures is that they execute quicker that the equivalent in-line query. This is because SQL Server has the opportunity to work out the best execution plan ahead of the time when the stored procedure will be called by the application.

S.Pirashanth : On August 28, 2008 5:05 AM said:

Many thanks for the great videos

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Featured ASP.NET 3.5 Web Hosting


Featured ASP.NET 3.5 hosting offer from AppliedI.net

Click Here To Learn More...

Page view counter
Microsoft Communities