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