Validate data using DataAnnotations with WPF & Entity Framework?

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

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

7条回答
  •  无人及你
    2020-11-29 20:08

    In .NET 4, there is validation support in Entity-Framework using this extension, check out: http://blogs.msdn.com/adonet/archive/2010/01/13/introducing-the-portable-extensible-metadata.aspx

    I am not sure if it does use DataAnnotations tho.

    UPDATE
    I tried it with VB.NET and it didn't work, I think it only supports C# projects.

提交回复
热议问题