IDataErrorInfo vs IValidatableObject?

前端 未结 2 639
日久生厌
日久生厌 2021-01-17 16:22

Currently my business objects implement IDataErrorInfo. Since I intend to use these libraries in ASP.NET MVC 3, I figure I should implement IValidatableOb

2条回答
  •  别那么骄傲
    2021-01-17 17:04

    I am implementing IValidatableObject at entity, wrapping it with IDataErrorInfo at view model (automatically via base class) for WPF. My entities will work well in either WPF, MVC and new EF CTP5 who also honors IValidatableObject.

提交回复
热议问题