-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
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
Improve error message when adding wrong type to SqlParameterCollection #1547
Conversation
…tion (to help conversions from System.Data.SqlClient) fixes dotnet#1546
Thanks @ErikEJ |
Test is still failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For the sake of code coverage, may I ask you to include the following line of code in this block, please?
DataTestUtility.AssertThrowsWrapper<IndexOutOfRangeException>(() => opc["@p1"] = null, "A SqlParameter with ParameterName '@p1' is not contained by this SqlParameterCollection.");
@DavoudEshtehari I have added the line, not sure how it releates to this PR... |
It doesn't, you're just getting columbo'ed ("just one more thing...") since code coverage is poor in places and you're editing the file. |
Happy to do a separate PR to increase code coverage. Is there an issue for that? |
Happy to hear it @ErikEJ I'm afraid we don't have an active issue for code coverage. We're working to add the code coverage report to our pipelines to verify any digression instantly that would be helpful to detect and improve it with the public. |
(to help conversions from System.Data.SqlClient)
fixes #1546