예제 #1
0
        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));
        }
예제 #2
0
 public NestedField GetId(String entityName, int level, NestedLine line)
 {
     return(line.Fields.Find(x => x.Name[level] == "Id" && x.Name[level - 1] == entityName));
 }