Validate data using DataAnnotations with WPF & Entity Framework?

后端 未结 7 2249
甜味超标
甜味超标 2020-11-29 19:10

Is there any way to validate using DataAnnotations in WPF & Entity Framework?

7条回答
  •  温柔的废话
    2020-11-29 19:57

    I have written a Contributor based validator which includes a DataAnnotation validation contributor and also checks against broken bindings (where the user has entered incorrect type)

    http://adammills.wordpress.com/2010/07/21/mvvm-validation-and-type-checking/

提交回复
热议问题