예제 #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));
        }
예제 #2
0
파일: Extensions.cs 프로젝트: lr030/ML
 public static SqlBuilder.Template ToSqlBuilderTemplate <T>(this Mutator mutator, Settings <T> settings, StatementMasks masks) where T : Data <T> => mutator.ToSqlBuilderTemplate(settings.Members, masks);