我们是否需要使用Entity Framework 4.0的BindingSource?
问题描述:
我们真的需要BindingSource绑定到控件吗?即它解决了什么问题?我们是否需要使用Entity Framework 4.0的BindingSource?
你使用BindingSource,还是使用其他方法?
答
是的,无论您的基础数据源如何,您都需要它。的BindingSource的主要存在的理由是为了避免直接订阅更改的数据对象的通知事件时可能发生的内存泄漏。只要你使用的是默认的Windows窗体绑定机制,你需要的BindingSource。