标签:stat this column class tin des ble add style
public void BuckCopy(DataTable dt, string destinationTableName) { using (SqlConnection sqlConn = (SqlConnection)this.CurrentDataBase.CreateConnection()) { if (sqlConn.State != ConnectionState.Open) sqlConn.Open(); using (SqlBulkCopy buckCopy = new SqlBulkCopy(sqlConn)) { buckCopy.DestinationTableName = destinationTableName; buckCopy.ColumnMappings.Add("ID", "ID"); buckCopy.WriteToServer(dt); } } }
标签:stat this column class tin des ble add style
原文地址:https://www.cnblogs.com/daniel-niu/p/10682785.html