public ResultObjectMapping ProcessRow(ResultObjectMapping parent, object row) { var result = new ResultObjectMapping(); Selects.ForEach(it => result.Add(it.Key, it.Value(row))); result.Add(parent); return(result); }
public ResultObjectMapping ProcessRow(IDataReader dr) { var result = new ResultObjectMapping(); foreach (var sel in Query.Selects) { result.Add(sel.QuerySource, sel.Instancer(result, dr)); } return(result); }
public ResultObjectMapping ProcessRow(ResultObjectMapping parent, string[] items) { var result = new ResultObjectMapping(); for (int i = 0; i < Selects.Count; i++) { var sel = Selects[i]; result.Add(sel.Key, sel.Value(items[i])); } result.Add(parent); return(result); }