public NestedLines BuildEntities(DbDataReader reader) { List <NestedLine> lines = new List <NestedLine>(); while (reader.Read()) { var line = NestedLine.FillFields(reader); lines.Add(line); } return(new NestedLines(lines)); }
public NestedField GetId(String entityName, int level, NestedLine line) { return(line.Fields.Find(x => x.Name[level] == "Id" && x.Name[level - 1] == entityName)); }