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)); }
public static SqlBuilder.Template ToSqlBuilderTemplate <T>(this Mutator mutator, Settings <T> settings, StatementMasks masks) where T : Data <T> => mutator.ToSqlBuilderTemplate(settings.Members, masks);