Raman Ghantiyala
how to use stored procedure in Asp.net MVC3
Posted by Raman Ghantiyala in .Net | ASP.NET on Sep 04, 2012
  • 0
  • 1
  • 1660
Do you know the answer for this question? Post it below.
Guest
Posted by parthiv pandya on Sep 11, 2012
  • 1

Hi Raman, Suppose you are working with Linq to sql then drag and drop your stored procedure to right side window of dbml and build the project. then you use it like a method in your project. Ex: if you are creating Datacontext Object then use that Object to retrieve your stored procedure. DataContext db=new DataContext(); db. if parameter is available then pass into it.


Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2013© C# Corner. All contents are copyright of their authors.