开发者

Can Castle Validators work with DataAnnotations attributes?

开发者 https://www.devze.com 2023-03-27 04:10 出处:网络
Is there a way of making DataAnnotations attributes such as Required to work with Castle Validators? I know Castle has its own attributes - but I am wanting to use the same attrib开发者_StackOverflow

Is there a way of making DataAnnotations attributes such as Required to work with Castle Validators?

I know Castle has its own attributes - but I am wanting to use the same attrib开发者_StackOverflow中文版ute for the view and business logic. So I want the attributes to be used for the view validation and any business logic validation. I am aware this approach is not ideal.

0

精彩评论

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