-
Notifications
You must be signed in to change notification settings - Fork 299
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
SqlConnectionStringBuilder does not report ICustomTypeDescriptor properties properly #1275
Comments
@masonwheeler from the provided sample I can see System.Data.SqlClient is being used and the mentioned version also confirms that. Is that correct? |
How did you resolve |
Yes.
Not sure what you mean. I grabbed it from NuGet and built the project and ran it. Is it not building for you?
Thanks for the heads-up! I didn't even notice they were two different namespaces. With that package, it appears to be working as expected. |
The entire message is this: System.Data.SqlClient is in servicing mode and is not accepting any updates, but critical ones. Microsoft.Data.SqlClient is getting updates on regular basis and this issue was resolved I believe in PR #1152 If the problem is solved please feel free to close the issue. |
Yeah, that seems to be a nuisance warning that doesn't convey any useful information and can be safely ignored. All it means is that the last time the NuGet package was built was before .NET 5 was around. Having said that, I get that message multiple times in my project for |
Not that I am aware of. What is the message? I am not getting that on my side on the provided sample. |
It's not on the provided sample; it's on my actual project.
|
There is no Microsoft.SqlServer.Types package for .NET 5. |
I did not have that package referenced in the provided sample code. I manually installed it and got the same message. Can you test removing that reference from you project? |
@ErikEJ So who do I need to ping about getting it updated? |
@JRahnama no; then it wouldn't compile because I'm using those types. |
Microsoft.SqlServer.Types is not available for .NET 5 right now. |
Describe the bug
SqlConnectionStringBuilder
inherits from a base class that implements ICustomTypeDescriptor, which is supposed to report the class's properties to a property inspector and make them easy to edit. Hooking one up to aSqlConnectionStringBuilder
instance, however, shows several properties reported twice, where editing one of them works as expected and the other one raises data binding errors.To reproduce
See attached project. Note that many properties are reported twice, including the all-important Data Source and Initial Catalog.
Expected behavior
Every connection string property should be reported exactly once and be editable without errors.
Further technical details
Microsoft.Data.SqlClient version: 4.8.3
.NET target: .NET 5
SQL Server version: n/a
Operating system: Windows 10
The text was updated successfully, but these errors were encountered: