Skip to content

Setting connection string builder property to null should remove it #749

@bgrainger

Description

@bgrainger

Execute the following code:

var csb = new MySqlConnectionStringBuilder();
csb.Server = "abc";
csb.Server = null;
csb.UserID = "abc";
csb.UserID = null;
Console.WriteLine(csb.ConnectionString);

Expected output is ""; actual output is "Server=;User Id=".

Via dotnet/runtime#689.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions