本帖最后由 lixiaoliang7 于 2011-07-08 08:46:17 编辑

解决方案 »

  1.   

                        type=实体.GetType()
                        foreach (PropertyInfo proper in type.GetProperties())
                        {
                            proper.SetValue(obj, reader.GetValue(proper.Name), null);
                        }
      

  2.   

    List<string>改成List<UserInfoEntity>也许有希望
      

  3.   

    为什么不要实体呢?要用String?
      

  4.   

    foreach(UserInfoEntity field in list)
    {
        //调用field存储的字符串对应的属性,请问应如何做?
        field.属性
    }