C#反射

 var data = connection1.Query<ZY_EQUIPMENT_BASE>(sqlpage).ToList();

                    foreach (var zyEquipmentBase in data)
                    {
                        Type type = zyEquipmentBase.GetType();
                        var s = type.GetProperty("OBJ_DISPIDX").GetValue(zyEquipmentBase, null);
                    }

参考地址1

参考地址2

参考地址3

posted @ 2015-11-06 16:46  Seaurl  阅读(211)  评论(0编辑  收藏  举报