ICollection <T> RunQueryAndHydrate <T>() { SqlCommandRunner runner = new SqlCommandRunner(); var query = Build(); return(runner.RunList <T>(session, query, Parameters.ToArray())); }
ICollection <T> RunQueryAndHydrateWithPaging <T>(out long total) { if (limit < 1) { limit = 0; } if (offset < 1) { offset = 0; } SqlCommandRunner runner = new SqlCommandRunner(); var query = Build(); return(runner.RunList <T>(session, query, limit, offset, out total, Parameters.ToArray())); }