You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createTable.CommandText=$@"IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='{_tableName}') BEGIN CREATE TABLE {_tableName} ( Id int, LastName varchar(255), FirstName varchar(255) ); END";
54
+
createTable.ExecuteNonQuery();
55
+
connection.Close();
56
+
connection.Dispose();
57
+
}
58
+
59
+
[TestCleanup]
60
+
publicvoidCleanUp()
61
+
{
62
+
usingvarconnection=newSqlConnection(_connString);
63
+
connection.Open();
64
+
varcreateTable=connection.CreateCommand();
65
+
createTable.CommandText=$@"IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='{_tableName}') BEGIN DROP TABLE IF EXISTS {_tableName}; END";
66
+
createTable.ExecuteNonQuery();
67
+
connection.Close();
68
+
connection.Dispose();
69
+
}
70
+
71
+
// Add following line to BulkInsert.cs: 'throw new Exception();' before 'transaction.Commit();' (currently line 78).
72
+
[Ignore("To run this test, comment this line after exception has been added to BulkInsert.cs.")]
0 commit comments