private static DynamicRow GetRow(IDataReader dr)
        {
            var row = new DynamicRow();

            for (int i = 0; i < dr.FieldCount; i++)
            {
                row.SetMember(dr.GetName(i), dr.GetValue(i));
            }
            return(row);
        }
Beispiel #2
0
        public static DynamicRow GetValues(this ControllerBase ctrl)
        {
            var result = new DynamicRow();

            foreach (var o in ctrl.Bag)
            {
                result.SetMember(o.Key, o.Value);
            }
            return(result);
        }