Exemplo n.º 1
0
        public static List <TRow> List <TRow>(this IDbConnection connection, Action <SqlQuery> editQuery)
            where TRow : class, IRow, new()
        {
            var row = new TRow()
            {
                TrackWithChecks = true
            };
            var query = new SqlQuery().From(row);

            editQuery(query);

            return(query.List(connection, row));
        }