MVC使用存储过程? [英] MVC use Stored Procedur ?

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

问题描述

我有创建MVC项目使用存储过程或Web服务所以给出建议我们在数据库通信中的内容(插入更新删除和选择操作)

I have Create MVC project use Stored procedure or Web services so give suggestion what us in Database communication(insert update delete and select operation)

推荐答案

MVC将创建为您编写CRUD的页面,但MVC实际上与它无关,它是您最终使用的实体框架。您可以将存储过程与EF一起使用,但它需要做更多工作,除非您需要,否则通常不会这样做。
MVC will create pages with CRUD written for you, but MVC really has nothing to do with it, it's entity framework that you end up using. You can use stored procs with EF, but it's a lot more work, and not generally done unless you need to.


这篇关于MVC使用存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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