public DynamicRow NewRow() { var row = new DynamicRow(this); Add(row); return(row); }
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; }
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; }