如何在asp.net mvc3中调用存储过程? [英] How to call a stored procedure in asp.net mvc3?

查看:93
本文介绍了如何在asp.net mvc3中调用存储过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我是asp.net mvc3的新手

如何在asp.net中调用存储过程mvc3

如果有人知道plz给出建议







我正在使用linq to sql方法,但没有不知道如何调用存储过程

[/ EDIT]

hi i am new to asp.net mvc3
how can i call a stored procedure in asp.net mvc3
if anybody knows plz give suggestion



i''m doing it with linq to sql method, but didn''t get how to call a stored procedure
[/EDIT]

推荐答案

MVC不对您访问数据的方式负责。你可以使用很多技术,包括



普通老式ADO.NET

LINQ to SQL

NHibernate

实体框架





NHibernate with SP [ ^ ]



NHibernate [ ^ ]



更多 [ ^ ]
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


NHibernate with SP[^]

NHibernate[^]

More[^]

看看下面你会得到一些想法:

http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored -procedures.aspx [ ^ ]



http://stackoverflow.com/questions/6437814/multiple-result-set-from-sql-via-linq [ ^ ]
have a look at the following you will get some idea:
http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored-procedures.aspx[^]

http://stackoverflow.com/questions/6437814/multiple-result-set-from-sql-via-linq[^]


我想将数据插入数据库plz建议如何使用存储过程插入
i want to insert the data into database plz suggest how to insert using stored procedure


这篇关于如何在asp.net mvc3中调用存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆