Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding. Quickly create visually stunning, feature-complete Web applications with database access and security. Iron Speed Designer accelerates development by eliminating routine infrastructure programming, giving you ready-to-deploy n-tier Web applications in minutes.
ironspeed免费试用半个月
下载地址
http://www.ironspeed.com/products/DownloadNow.aspx
不怎么会ASP.NET,也没有仔细研究.但是它的SQL & stored procedure generation部分觉得还是蛮有用的.
看了看它生成的修改记录的存储过程,以前我的做法就是 UPDATE 表 SET 字段=??? Where 主键=???
它的存储过程是这样的:
1)先检查该记录是否被其他用户删除,若被删除就RAISERROR
2)如果是强制修改(通过一个参数 @p_force_update char(1) 指定),就执行UPDATE语句,然后判断@@ROWCOUNT的值
a)如果=0就RAISERROR('无法修改记录',16,1)
b)如果>1就RAISERROR('存在重复记录',16,1)
3)如果是非强制修改,通过BINARY_CHECKSUM对比该行当前的校验值与查询时的校验值是否相同
a)校验值相同按2)进行修改
b)校验值不相同就不修改并且RAISERROR('该行记录已经被其他用户修改过',16,1)