Example #1
0
        public static void TestClassCleanup()
        {
            using var conn = new SqlConnection(TestHook.SampleDbConnectionString);
            conn.Open();
            string sqlCommand = TableCommands.DropTable("GuaranteeBankData");

            conn.Execute(sqlCommand);
        }
Example #2
0
 public static void TestClassCleanup()
 {
     using (var conn = new SqlConnection(TestDbConnection.LocalDb.Northwind))
     {
         conn.Open();
         string sqlCommand = TableCommands.DropTable(TableNames.Northwind.Customers);
         conn.Execute(sqlCommand);
     }
 }
Example #3
0
 private static void DropTable()
 {
     using (var conn = new SqlConnection(TestHook.SampleDbConnection))
     {
         conn.Open();
         var sqlCommand = TableCommands.DropTable("TEST");
         conn.Execute(sqlCommand);
     }
 }
Example #4
0
 public static void TestClassCleanup()
 {
     using (var conn = new SqlConnection(TestHook.SampleDbConnection))
     {
         conn.Open();
         string sqlCommand = TableCommands.DropTable("SchoolInfo");
         conn.Execute(sqlCommand);
     }
 }