public RetriableTransactionTests(DmlTableFixture fixture)
 {
     _fixture   = fixture;
     _selectSql = $"SELECT OriginalValue FROM {_fixture.TableName} WHERE UpdateMe AND Key=@Key";
     _updateSql = $"UPDATE {_fixture.TableName} SET Value = Value + 1 WHERE UpdateMe AND Key=@Key";
     _insertSql = $"INSERT INTO {_fixture.TableName} (Key, OriginalValue, Value, UpdateMe, DeleteMe, CopyMe) SELECT Key, OriginalValue + 10, Value, UpdateMe, DeleteMe, CopyMe FROM {_fixture.TableName} WHERE CopyMe AND KEY=@Key";
 }
Ejemplo n.º 2
0
 public DmlTests(DmlTableFixture fixture) => _fixture = fixture;