生成简单的CRUD存储过程 [英] Generating simple CRUD stored procs

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

问题描述

我正在从事一个项目,该项目必须遵守与SQL实现相关的某些公司标准。具体来说,所有SQL Server内容都只能通过存储的proc 访问。 (没有ORM或LINQ。)

I'm working on a project that is subject to certain corporate standards relating to SQL implementation. Specifically, that all SQL Server content be accessed only via stored proc. (No ORM or LINQ.)

我们可以通过基本的CRUD(CREATE,READ,UPDATE,DELETE)类型的过程来满足80%或更多的需求生成起来非常简单。但是,到目前为止,我一直无法找到能够生成这些相当简单的基本存储过程的现有工具。

80% or more of our needs can be handled through the basic CRUD (CREATE, READ, UPDATE, DELETE) type of procedure that should be fairly simple to generate. However, I've been unsuccessful so far in locating an existing tool that will generate these fairly simple "base" stored procedures.

因此,有人可以指出我一个工具吗?可以用来生成所需的大部分程序吗?最好允许对过程进行一些自定义,例如将语句包装在基本的 BEGIN / END TRY 构造中。

So, can anyone point me to a tool that I can use to generate the bulk of my required procedures? Preferably one that allows some customization of the process, such as wrapping the statements in a basic BEGIN/END TRY construct.

谢谢。

推荐答案

MladenPrajdić的 nofollow noreferrer> SSMS工具包听起来很合适。您可以自定义其使用的模板。

SSMS Tools Pack from Mladen Prajdić sounds like it might fit the bill. You can customise the templates it uses.

无论如何,还是值得尝试其他便利功能的。

It's well worth trying anyway for its other handy features.

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

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