-
Notifications
You must be signed in to change notification settings - Fork 294
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
CacheConnectionStringProperties is called twice when initializing SqlConnection. #680
Comments
@TrayanZapryanov by saying any constructor you mean I can see the issue on And second is it happening at netcore or dotnet framework? |
I've mean both public constructors in netcore: and Although same is valid and for dotnet framework. |
Hi @TrayanZapryanov , Thank you for pointing this out. I agree that there are additional calls of CacheConnectionStringProperties in some SqlConnection constructors after setting ConnectionString property. |
When calling any constructor of SqlConnection - there is an explicit call of CacheConnectionStringProperties.
This looks redundant as both ctor's are setting property ConnectionString and there is a call in it's set method.
I hope that I've read correctly the code, if not please excuse me and close the issue.
The text was updated successfully, but these errors were encountered: