我们是否需要使用 Entity Framework 4.0 的 BindingSource?

发布于 2024-10-18 00:56:22 字数 82 浏览 4 评论 0原文

我们真的需要 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪荡不羁 2024-10-25 00:56:22

是的,无论您的基础数据源如何,您都需要它。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文