public LeettleDbImpl(string connectionString, Type dbConnectionType, BindStrategy bindStrategy, IPreparedSqlProvider sqlProvider) { this.connectionString = connectionString; this.dbConnectionType = dbConnectionType; this.bindStrategy = bindStrategy; this.sqlProvider = sqlProvider; }
public HybridModelBinder( BindStrategy bindStrategy, IEnumerable <string> fallbackBindingOrder = null) { this.bindStrategy = bindStrategy; this.fallbackBindingOrder = fallbackBindingOrder ?? FallbackBindingOrder; }
private void RunTest(BindStrategy bindStrategy, TestTask testTask) { var leettleDb = new LeettleDbBuilder() .WithConnectionString(ConnectionString) .WithConnectionType(DbConnectionType) .WithBindStrategy(bindStrategy) .Build(); using (var con = leettleDb.OpenConnection()) { try { con.NewCommand(ToProperSql(SqlCreateTable)).Execute(); testTask(con); } finally { con.NewCommand(ToProperSql(SqlDropTable)).Execute(); } } }
public Connection(DbConnection dbCon, BindStrategy bindStrategy, IPreparedSqlProvider sqlProvider) { this.dbCon = dbCon; this.bindStrategy = bindStrategy; this.sqlProvider = sqlProvider; }
public HybridModelBinder(BindStrategy bindStrategy) { this.bindStrategy = bindStrategy; }
public DbCommandWrapper(Connection connection, BindStrategy bindStrategy, string sql) { this.connection = connection; this.BindStrategy = bindStrategy; this.sql = sql; }
public DbDataReaderWrapper(DbDataReader dataReader, BindStrategy bindStrategy) { this.DataReader = dataReader; this.bindStrategy = bindStrategy; }