public SqlServerPaginationCommand( SqlConnectionStringBuilder builder, DatabaseCommandBuilder databaseCommandBuilder, ISqlServerCommandExecutor commandExecutor) { _databaseCommander = new SqlServerDatabaseCommander(builder, databaseCommandBuilder, commandExecutor); }
public SqlServerDatabaseCommanderFactory( IConnectionStringCollection connectionStringCollection, DatabaseCommandBuilder databaseCommandBuilder, ISqlServerCommandExecutor sqlServerCommandExecutor) { _connectionStringCollection = connectionStringCollection; _databaseCommandBuilder = databaseCommandBuilder; _sqlServerCommandExecutor = sqlServerCommandExecutor; }
public EntityFrameworkSqlServerDatabaseCommander( DbContext dbContext, DatabaseCommandBuilder databaseCommandBuilder, SqlConnectionStringBuilder builder, ISqlServerCommandExecutor commandExecutor) : base(builder, databaseCommandBuilder, commandExecutor) { _dbContext = dbContext; }
public SqlServerDatabaseCommander( SqlConnectionStringBuilder builder, DatabaseCommandBuilder databaseCommandBuilder, ISqlServerCommandExecutor commandExecutor) : base(databaseCommandBuilder) { _builder = builder; _commandExecutor = commandExecutor; }
public EntityFrameworkSqlServerDatabaseCommanderFactory( DbContext dbContext, DatabaseCommandBuilder databaseCommandBuilder, IConnectionStringCollection connectionStringCollection, ISqlServerCommandExecutor commandExecutor) { _dbContext = dbContext; _databaseCommandBuilder = databaseCommandBuilder; _connectionStringCollection = connectionStringCollection; _commandExecutor = commandExecutor; }
public void Can_Clear_DatabaseCommandBuilder() { // Arrange var sut = new DatabaseCommandBuilder(); sut.Append("SELECT * FROM Fridge") .Append(" WHERE Alcohol > @percentage") .AppendParameter("percentage", 10); // Act var actual = sut.Clear().Append("test").Build(); // Assert actual.CommandText.Should().Be("test"); actual.CommandParameters.Should().BeAssignableTo <IDictionary <string, object> >(); var parameters = actual.CommandParameters as IDictionary <string, object>; if (parameters != null) { parameters.Should().HaveCount(0); } }
public OracleDatabaseCommanderFactory(IConnectionStringCollection connectionStringCollection, DatabaseCommandBuilder databaseCommandBuilder) { _connectionStringCollection = connectionStringCollection; _databaseCommandBuilder = databaseCommandBuilder; }