开发者

what is a good approach for handling concurrency issues in asp.net development?

开发者 https://www.devze.com 2022-12-10 05:50 出处:网络
I was wondering if I\'m sup开发者_如何学Pythonposed to stick to sqldatasources and objectdatasources to fill asp.net webcontrols and if programatically binding controls is a bad practice because you h

I was wondering if I'm sup开发者_如何学Pythonposed to stick to sqldatasources and objectdatasources to fill asp.net webcontrols and if programatically binding controls is a bad practice because you have to manually control concurrency. My main concern is if there is a good approach to control concurrency without the use of the sqldatasource and object datasources


There are a few different approaches and otyu need to pick the one that best suits your needs.

A common approach is to amend you stored procedures to check for old values. see this article: https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-1050108.html

You can use DataRowVersion of your DataROw object to look at original, current and proposed values.

I hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号