日期:2014-05-17  浏览次数:20437 次

MVC3.0 Model全球化问题
全球化资源文件采用I18N resx文件

在Model实体属性下

using Land.I18N

[DispalyName(Land.I18N.Resources.Close)]

public string Close(get;set;)

出现Land.I18N.Resources.Close错误

特性实参必须是特性形参类型的常量表达式、typeof表达式或数组创建表达式

请问大虾这个问题你们是怎么解决的,非常需要在Model进行国际化

------解决方案--------------------
楼主看看http://www.csharpwin.com/dotnetspace/13022r5221.shtml