开发者

Silverlight wcf ria services : Validation Annotation questions

开发者 https://www.devze.com 2023-04-08 02:05 出处:网络
How do i do the equivalent of [Required] in xaml code behind? I have a dataform that autogenerates the fields from a domain service class. Is it possible t开发者_如何学Pythono add or remove the [Requ

How do i do the equivalent of [Required] in xaml code behind?

I have a dataform that autogenerates the fields from a domain service class. Is it possible t开发者_如何学Pythono add or remove the [Required] validation in the _AutoGeneratingField method?

Thanks


Try to create extension class for your entity, where you can use [Required] attribute.

If you need some examples - let me know.

0

精彩评论

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

关注公众号