解决方案 »

  1.   

    DictionaryValue的类型的怎么是string?看名字应该是Dictionary或者List之类的
      

  2.   

    是的,我也觉得奇怪。但是我看code就是string啊。
      /// <summary>
            /// 业务类型
            /// </summary>
            [DisplayName("对象大类")]
            [UIHint("DictionaryValueNullable")]
            [AllowHtml]
            public virtual string DictionaryValue { get; set; }
      

  3.   

            [AllowHtml]
    那你看看DictionaryValue 具体的数据
      

  4.   

     就是一个枚举的列表,但是我不知道在哪里code在哪里获取了这个枚举的列表。
      

  5.   

    代码最上段有没有一个@Model=model类似的东西
      

  6.   

    我搜索了一下UIHint
    得 
    http://technet.microsoft.com/zh-cn/subscriptions/system.componentmodel.dataannotations.uihintattribute.uihint(v=vs.90).aspx
      

  7.   

     有一个@model  TaskPatrolModel 这个。
      

  8.   


    找到 TaskPatrolModel 这个Model