Esempio n. 1
0
        ICollection <T> RunQueryAndHydrate <T>()
        {
            SqlCommandRunner runner = new SqlCommandRunner();
            var query = Build();

            return(runner.RunList <T>(session, query, Parameters.ToArray()));
        }
Esempio n. 2
0
        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()));
        }