We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot use RowsCopied event, does not exist in SqlBulCopy class in 2.0 preview 2, event though readme states it should be available.
The code below does not compile. I expected it to.
using (var sqlConnection = new SqlConnection("Data Source=(localdb)\\mssqllocaldb;Initial Catalog=Northwind;Integrated Security= true")) { sqlConnection.Open(); using (var bulkCopy = new SqlBulkCopy(sqlConnection)) { bulkCopy.DestinationTableName = "Shippers"; bulkCopy.WriteToServer(new DataTable()); var rows = bulkCopy.RowsCopied; } }
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Data.SqlClient" Version="2.0.0-preview2.20084.1" /> </ItemGroup> </Project>
The text was updated successfully, but these errors were encountered:
Thanks @ErikEJ
Looks like we missed adding refs in the original PR. I've created PR #508 to fix the issue.
Sorry, something went wrong.
Thanks, I was planning a small blog post, but the property was missing! 😄
Successfully merging a pull request may close this issue.
Describe the bug
I cannot use RowsCopied event, does not exist in SqlBulCopy class in 2.0 preview 2, event though readme states it should be available.
To reproduce
The code below does not compile. I expected it to.
Further technical details
The text was updated successfully, but these errors were encountered: