我们是否需要使用 Entity Framework 4.0 的 BindingSource?
我们真的需要 BindingSource 来绑定到控件吗?即它解决了什么问题?
您使用 BindingSource 还是使用其他方法?
Do we really need BindingSource to bind to controls? I.e. what problems does it solve?
Do you use the BindingSource, or do you use an alternative method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,无论您的基础数据源如何,您都需要它。 BindingSource 存在的主要目的是避免直接订阅数据对象上的更改通知事件时可能发生的内存泄漏。只要您使用默认的 Windows 窗体绑定机制,您就需要 BindingSource。
Yes, you need it regardless of your underlying data source. The primary raison-d'être of BindingSource is to avoid memory leaks that can occur when subscribing directly to change notification events on data objects. As long as you're using the default Windows Forms binding mechanism, you'll need BindingSource.