【发布时间】:2013-02-18 23:27:00
【问题描述】:
我试过这个: How to create Custom Data Annotation Validators 但是 Visual Studio 说命名空间: 使用 System.ComponentModel.DataAnnotations.ValidationAttribute; 不存在。 我用的是 EF 5 ..... 我该怎么办?
【问题讨论】:
-
将命名空间添加到您的项目中。
标签: c# entity-framework ef-code-first