SQL存储过程死了吗? [英] Is SQL stored procedure dead?

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

问题描述

SQL存储过程是否已经死亡?

Microsoft是否认为只使用param动态SQL的零过程应用程序是最佳实践?它不再是建议的方法并被ef / orm + parameterised取代动态SQL查询?



预期的应用程序工作区域适用于中型到大型企业金融交易应用程序。

多级嵌套事务将有回滚和错误处理策略。



我尝试过:



我已经知道并完成了事务的过程,无论是oracle还是SQL。

Is SQL stored procedure dead?
Does Microsoft say that zero procedure application with only param dynamic SQL is the best practice?Is it no more a suggested approach and replaced by "ef/orm + parameterised dynamic SQL query"?

Intended application area of work is for middle to large size enterprise financial transaction applications.
Multi level, nested transactions with rollback and error handling strategies would havevto be in place.

What I have tried:

I have known and done Procedures for transactions be it oracle or SQL.

推荐答案

存储过程几乎没有死。



虽然实体框架可用于创建数据库(代码优先),但可以设置代码优先为CRUD操作创建程序。在数据库第一个场景中,EF将绘制出利用现有程序的方法。



由于我们构建的应用程序不使用ORM,我们使用ADO和大量的SPROC整天
Stored Procedures are nowhere near dead.

While Entity Framework may be used to create the DB (Code First), Code First can be set to create procedures for CRUD ops. In a DB first scenario, EF will map out methods to utilize the existing procedures.

As the apps we build don't utilize ORMs, we use ADO and plenty of SPROCs all day long


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

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