a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
530 B
C#
15 lines
530 B
C#
namespace System.Web.Mvc {
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
public class DataAnnotationsModelValidator<TAttribute> : DataAnnotationsModelValidator where TAttribute : ValidationAttribute {
|
|
public DataAnnotationsModelValidator(ModelMetadata metadata, ControllerContext context, TAttribute attribute)
|
|
: base(metadata, context, attribute) { }
|
|
|
|
protected new TAttribute Attribute {
|
|
get {
|
|
return (TAttribute)base.Attribute;
|
|
}
|
|
}
|
|
}
|
|
}
|