DataAnnotation Validations and Custom ModelBinder

后端 未结 3 1392
情话喂你
情话喂你 2020-12-30 14:00

I\'ve been running some experiments with ASP.NET MVC2 and have run into an interesting problem.

I\'d like to define an interface around the objects that will be used

3条回答
  •  抹茶落季
    2020-12-30 14:55

    Have you tried placing the [Required] attribute on your model and retesting? It may be having difficulty applying the attribute to an interface.

提交回复
热议问题