public void SqlBulkCopyImport(DataTable dt,string TableName) { try { { con.Open(); MySqlBulkLoader bulkCopy = new MySqlBulkLoader(con); // { // Specify the destination table name. bulkCopy.TableName = TableName; // foreach (DataColumn dc in dt.Columns) // { // bulkCopy.colummap.Add(dc.ColumnName, dc.ColumnName); // } // Write from the source to the destination. //how exactly to do this?? // } } } catch (Exception ex) { throw ex; } finally { con.Close(); } }
Error 7 'colummap' is not a member of 'MySql.Data.MySqlClient.MySqlBulkLoader'.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)