开发者

LINQ to SQL Classes with INotifyPropertyChanged and IDataErrorInfo for WPF bindings

开发者 https://www.devze.com 2023-01-19 10:27 出处:网络
I use the LINQ to SQL Classes to access开发者_Python百科 to my database. Now I want to use the LINQ to SQL Classes for WPF DataBindings and validation. How do I implement these two interfaces to my pr

I use the LINQ to SQL Classes to access开发者_Python百科 to my database. Now I want to use the LINQ to SQL Classes for WPF DataBindings and validation. How do I implement these two interfaces to my projects Model? Is it possible implement INotifyProperty automatically?


This gets you the INotifyPropertyChanged part.

NotifyPropertyWeaver

Then IDataErrorInfo can be done in a base class.

0

精彩评论

暂无评论...
验证码 换一张
取 消