public void DefineParameterNameStrategy(IParameterNameStrategy parameterNameStrategy) { if (parameterNameStrategy == null) { _parameterNameStrategy = new ByIndexParameterNameStrategy(); } else { _parameterNameStrategy = parameterNameStrategy; } }
public FluentSqlQueryBuilder(ISqlBuilderFluentAdapter sqlAdapter, Type typeTable, SqlBuilderFormatting formatting, IParameterNameStrategy parameterNameStrategy = null, string tableNameAliasOverride = null) { _sqlAdapter = sqlAdapter; _formatting = formatting; DefineTableNameAliasOverride(tableNameAliasOverride); DefineSqlQueryBuilderExtension(typeTable); _sqlQueryBuilderExtension.DefineTableNameFrom(typeTable); _sqlQueryBuilderExtension.DefineSchemaNameFrom(typeTable); _sqlQueryBuilderExtension.DefineParameterNameStrategy(parameterNameStrategy); }