public void QueryUseGeneric() { Line line = new Line() { Line_Pk=1 }; List<Line> lines = line.Query<Line>(); lines.ForEach(ln => { Console.WriteLine("line {0} title:{1}", ln.Line_Pk.ToString(), ln.Title); }); Console.WriteLine("tested {0} rows", lines.Count.ToString()); Assert.IsTrue(lines.Count > 0); line = null; }