views:

201

answers:

1

LINQ default methods for insert/delete/update are coming disabled in visual studio 2008. The methods are grayed out (Use Runtime) and can't change to custom Stored procedures.

I am using ASP.NET MVC web application and LINQ to SQL. Any help will be apreciated. Many Thanks.

+2  A: 

If you mean LINQ-to-SQL, you need to drag the stored procedures onto the designer surface first. Then they become editable, allowing you to select the sproc and do the mapping to parameters.

Marc Gravell
Thanks it worked
Sumanta
I was very frustrated by this! Thanks for the question and answer!
Vaccano