如何使用enity框架在mvc4中调用mysql存储过程 [英] How do I call mysql store procedure in mvc4 using enity framework
本文介绍了如何使用enity框架在mvc4中调用mysql存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,如果有任何想法如何在mvc4中调用mysql sp因为没有给出行的任何记录。
Hello,if any one idea how to call mysql sp in mvc4.because that are not giving any records of rows.
推荐答案
首先通过以下方法进行操作使用MySQL和EntityFramework:
使用Entity Framework在MySQL中实现CRUD操作 [ ^ ]
接下来通过以下链接如何调用存储过程:
使用实体框架和MySQL存储过程查询MySQL– Coskun Sunali [ ^ ]
Firstly go through below how to work with MySQL and EntityFramework:
Implementing CRUD operations in MySQL using Entity Framework[^]
Next go through below link how to call stored procedure:
Querying MySQL using Entity Framework and MySQL Stored Procedures – Coskun Sunali[^]
请通过以下链接,您可以找到如何从实体框架调用存储过程
http://www.entityframeworktutorial.net/stored-procedure- in-entity-framework.aspxtarget =_ blanktitle =新窗口
http://www.entityframeworktutorial.net/EntityFramework4.3/execute-stored-procedure-using-dbcontext.aspx\"target =_ blank title =新窗口
Please go throuh the below links, you can find how to call stored procedure from entity framework
http://www.entityframeworktutorial.net/stored-procedure-in-entity-framework.aspx" target="_blank" title="New Window
http://www.entityframeworktutorial.net/EntityFramework4.3/execute-stored-procedure-using-dbcontext.aspx" target="_blank" title="New Window
这篇关于如何使用enity框架在mvc4中调用mysql存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文