Really easy, we use it just fine:
using (DbConnection connection = db.CreateConnection()) { connection.Open(); //blah blah //we use SqlBulkCopy that is not in the Microsoft Data Access Layer Block. using (SqlBulkCopy copy = new SqlBulkCopy((SqlConnection) connection, SqlBulkCopyOptions.Default, null)) { //init & write blah blah } }
The solution is to pass the connection: (SqlConnection) connection
source share