WPF的数据绑定功能如何适用于Entity Framework?

时间:2022-03-11 02:14:59

I'm aware that one of the advantages of WPF is it's data-binding capabilities.

我知道WPF的一个优点是它的数据绑定功能。

How does this data-binding fit in with the Entity Framework?

这种数据绑定如何与实体框架相适应?

1 个解决方案

#1


0  

I'm not sure what you are getting at here. If your entity implements INotifyPropertyChanged and you fire PropertyChanged events accordingly from your entity then you get updates to your values when bound, but this is NOT Entity Framework specific.

我不确定你在这里得到什么。如果您的实体实现了INotifyPropertyChanged并且您从实体中相应地触发了PropertyChanged事件,那么您在绑定时会获得对值的更新,但这不是特定于实体框架的。

#1


0  

I'm not sure what you are getting at here. If your entity implements INotifyPropertyChanged and you fire PropertyChanged events accordingly from your entity then you get updates to your values when bound, but this is NOT Entity Framework specific.

我不确定你在这里得到什么。如果您的实体实现了INotifyPropertyChanged并且您从实体中相应地触发了PropertyChanged事件,那么您在绑定时会获得对值的更新,但这不是特定于实体框架的。