开发者

How to call stored procedures from mvc3?

I'm trying to use mvc3. The online documentation says how to connect one class to one table. anybody have a suggestion on how to run stored procedures 开发者_StackOverflow中文版and return the results to a view?


MVC is not responsible for the way you access your data. There are many technologies that you can use including

  • Plain old ADO.NET
  • LINQ to SQL
  • NHibernate
  • Entity Framework


LINQ to SQL is probably the easiest way to get it working without any prior knowledge. Check out Scott Gu's post http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored-procedures.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜