实体框架与ADO.Net实体模型MVC3 [英] Entity Framework with ADO.Net Entity Model MVC3

查看:69
本文介绍了实体框架与ADO.Net实体模型MVC3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在MVC 3中使用存储过程,使用实体框架5和ADO.Net实体模型,我使用Web窗体(ASPX)引擎。

I need to use Stored Procedures in MVC 3 using Entity Framework 5 with ADO.Net Entity Model and I am using Web forms(ASPX) engine.

推荐答案

好吧,打开.edmx并右键单击设计并从数据库中选择更新模型,然后在添加选项卡中选择要添加的存储过程并单击添加,然后再次构建项目。现在您可以通过创建实体对象来使用。







希望这对您有帮助。
Well, Open Up the .edmx and right click on the the design and select update model from database and in the add tab select the storedprocedure you wanna add and click add, Then build your project once more. Now your can use by creating the Entity object.



Hope this will help you.


看到它



http://www.entityframeworktutorial.net/stored-procedure-in-entity-framework.aspx [ ^ ]





http://www.c-sharpcorner.com/UploadFile/ff2f08 / call-store-procedure-from-entity-framework / [ ^ ]
see it

http://www.entityframeworktutorial.net/stored-procedure-in-entity-framework.aspx[^]


http://www.c-sharpcorner.com/UploadFile/ff2f08/call-store-procedure-from-entity-framework/[^]


这篇关于实体框架与ADO.Net实体模型MVC3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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