예제 #1
0
 public void Close()
 {
     if (ProviderName == ProviderType.DB2)
     {
         throw new Exception("暂时不支持DB2数据库");     //db2BulkCopy.Close();
     }
     else if (ProviderName == ProviderType.SqlServer)
     {
         sqlBulkCopy.Close();
     }
     else if (ProviderName == ProviderType.Oracle)
     {
         oracleBulkCopy.Close();
     }
     else if (ProviderName == ProviderType.MySql)
     {
         mySqlBulkCopy.Close();
     }
 }
예제 #2
0
 public void Close()
 {
     if (ProviderName == ProviderType.DB2)
     {
         db2BulkCopy.Close();
     }
     else if (ProviderName == ProviderType.SqlServer)
     {
         sqlBulkCopy.Close();
     }
     else if (ProviderName == ProviderType.Oracle)
     {
         oracleBulkCopy.Close();
     }
     else if (ProviderName == ProviderType.MySql)
     {
         mySqlBulkCopy.Close();
     }
 }