예제 #1
0
 public void DefineParameterNameStrategy(IParameterNameStrategy parameterNameStrategy)
 {
     if (parameterNameStrategy == null)
     {
         _parameterNameStrategy = new ByIndexParameterNameStrategy();
     }
     else
     {
         _parameterNameStrategy = parameterNameStrategy;
     }
 }
예제 #2
0
        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);
        }