Ejemplo n.º 1
0
        public List <TU> AdapterQuery <TU>(string statement, Mutator mutator = null)
        {
            mutator = mutator.SetStatement(statement);
            var builder = mutator.ToSqlBuilderTemplate(Settings, Masks);
            var sql     = builder.RawSql;

            if (mutator.Transform?.Pagination?.Size > 0)
            {
                sql = AddPaginationWrapper(sql, mutator.Transform.Pagination);
            }

            return(RawQuery <TU>(sql, builder.Parameters));
        }