silverlight datacontext,每次对其执行新操作时都会重复所有过去的命令/操作
- 模块中定义的数据上下文(域服务 ado.net ria)
具有添加/删除方法的页面
每当执行任何方法时,都会发现所有之前的动作(NEW RECORD ADDITION 和 DELETION OF RECORDS)在新动作执行之前执行
在正常
此行为并不突出,但是
“当使用断点并检查要添加到的变量和表对象的值时 。
进行编辑
- 即使在 datacotext 中 。即使在要执行任何新操作时,仍然会重复在数据上下文上执行的所有操作,调用 savechanges
- a datacontext defined in a module(domain services ado.net ria)
a page having add/delete methods
whenever any method is executed, it is found that all the previous actions (NEW RECORD ADDITION and DELETION OF RECORDS) are carried out before the new action is carried out
normally
this behaviour is not prominent but
"when using break points and inspecting the values of the variables and table object to be added to context, it is clear that all the previous actions take place again.
edit
- even when the datacotext. savechanges is called, even after that still all actions carried out on the datacontext repeat themseleves, when any new action is to be carried out
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题
是每次都创建一个新的用户控件实例,因此当要求将记录添加到上下文时,所有实例都在那里工作......
解决方案
got the problem
was creating a new instance of the usercontrol every time, therefore all the instances did there work when asked to add record to context....
solution