如何在asp.net中实现悲观锁定? [英] How to achieve pessimistic locking in asp.net?

查看:99
本文介绍了如何在asp.net中实现悲观锁定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨先生,

我正在开发铁路机票预订以预订客户的机票,因为我需要使用悲观锁定来锁定其他用户不要预订

相同的座位号。请给我示例代码以实现悲观锁定。





[注意:如果一个用户更新记录,其他用户无法同时更新相同的记录]

Hi sir,
I am developing railways ticket reservation to book the tickets for customers, in that i need to use pessimistic locking to lock the other user do not book
the same seat number. Kindly give me the sample code to achieve the pessimistic lock.


[Note: If one user updating the records, other user cant able to update the same record at the same time]

推荐答案

查看这篇文章 ^ ]


这篇关于如何在asp.net中实现悲观锁定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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