阅读背景:

ASP.NET MVC 2中的DataAnnotations - 阻止MVC将RequiredAttribute应用于不可为空的DateTime等属性

来源:互联网 

Im trying to create a custom version of the RequiredAttribute to replace the built in one and I've got it working for properties that have strings values, but with properties that are DateTime or integer for example, the default RequiredAttribute seems to be applied automatically (IF the property is not nullable!)Im trying to create a custom version of the Req




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: