Linq to SQL在更新完成之前读取 [英] Linq to SQL reads before update completes

查看:84
本文介绍了Linq to SQL在更新完成之前读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用linq访问数据的客户端服务器系统.
在客户端上进行更新并提交更改时,系统将调用服务器以使用新信息来更新客户端.服务器读取数据,但在更新之前返回结果.

如何确保服务器端仅在更新完成后读取.

希望我能清楚地解释

I am working on a client server system which accesses data using linq.
When updateing on the client side and submitting changes the system calls the server to update the clients with the new information. The server reads the data but returns with the results before update.

How can I ensure that the server side only reads after the update is complete.

Hope I explained clearly

推荐答案

听起来像您没有提交更新,请看一下:
保存更改和管理并发性 [
Sounds like you are not commiting your updates, take a look at this:
Saving Changes and Managing Concurrency[^]

Regards
Espen Harlinn


这篇关于Linq to SQL在更新完成之前读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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