public SqlEventStoreDbTests() { _connectionString = ConfigurationManager.ConnectionStrings["EventStore.Database"].ConnectionString; _sqlNames = new SqlObjectNames("atest", "Aggregates", "Events"); _store = new SqlEventStoreDb(_connectionString, _sqlNames); _fixture = new Fixture(); _testData = new TestDataBuilder(); }
public SqlChangeTrackingBuilderProcedure(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup) : base(tableDescription, tableName, trackingName, setup) { this.tableDescription = tableDescription; this.setup = setup; this.tableName = tableName; this.trackingName = trackingName; this.sqlObjectNames = new SqlObjectNames(this.tableDescription, tableName, trackingName, this.setup); this.sqlDbMetadata = new SqlDbMetadata(); }
public SqlChangeTrackingBuilderProcedure(SyncTable tableDescription, DbConnection connection, DbTransaction transaction = null) : base(tableDescription, connection, transaction) { this.connection = connection as SqlConnection; this.transaction = transaction as SqlTransaction; this.tableDescription = tableDescription; (this.tableName, this.trackingName) = SqlTableBuilder.GetParsers(tableDescription); this.sqlObjectNames = new SqlObjectNames(this.tableDescription); this.sqlDbMetadata = new SqlDbMetadata(); }
public SqlChangeTrackingBuilderProcedure(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup, DbConnection connection, DbTransaction transaction = null) : base(tableDescription, tableName, trackingName, setup, connection, transaction) { this.connection = connection as SqlConnection; this.transaction = transaction as SqlTransaction; this.tableDescription = tableDescription; this.setup = setup; this.tableName = tableName; this.trackingName = trackingName; this.sqlObjectNames = new SqlObjectNames(this.tableDescription, tableName, trackingName, this.setup); this.sqlDbMetadata = new SqlDbMetadata(); }
public SqlEventStoreDb(string connectionString, SqlObjectNames sqlNames) { this._connectionString = connectionString; this._sqlNames = sqlNames; SqlMapper.AddTypeMap(typeof(DateTime), System.Data.DbType.DateTime2); }