实体框架工作和SQL存储过程 [英] Entity frame work and SQL Stored procedure

查看:64
本文介绍了实体框架工作和SQL存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在linq中编写查询更好或使用存储过程在mvc应用程序中更好

Writing the queries in linq is better or using Stored procedure are better in mvc applications

推荐答案

它取决于您使用的功能。现在我可以在EF生成的代码中尽我所能。当我遇到性能问题或其他特殊需求时,我会使用SP来解决一个特定的问题..它不一定是或者 - 使用两者。

希望这有助于
Its depends upon functionalities you work on. now do everything I can in EF generated code.and when I have a performance problem, or other special need, I use SP to solve a particular problem..it doesn't have to be either or - use both.
Hope this helps


这篇关于实体框架工作和SQL存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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