我using System.ComponentModel.DataAnnotations;在文件的顶部,但基本上我拥有的唯一属性是[DisplayName]和[Readonly]。甚至[Display(Name...]不存在。我错过了什么?
2 回答
0
Resharper等工具允许您分析using代码文件中的语句。
如果您发现不需要该using语句,请将其删除。
于 2013-09-19T15:26:14.113 回答
0
使用以下命名空间:
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
于 2017-10-28T11:52:26.520 回答