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(); } }
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(); } }