Skip to content

SqlConnectionStringBuilder does not report ICustomTypeDescriptor properties properly #1275

Closed

Description

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 a SqlConnectionStringBuilder 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions