You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW I think the main usefulness in DbConnection.Clone() is precisely to clone the authentication information, so that the clone can actually be opened successfully. For example, the password does get copied to clones, so I'm not sure why AccessTokenCallback would be treated any differently:
@roji Thanks for joining! Yeah. could be an oversight - AccessTokenCallback was just added to 5.2.
Would be great to get it fixed in SqlClient. so that Microsoft.EntityFramwork.SqlServer could take advantage (by using a newer SqlClient). I think adding the above "fix" to that is out of scope.
Activity
kf-gonzalez2 commentedon May 22, 2024
Can you please elaborate further on the issue? please include any repro steps or more explanation
ErikEJ commentedon May 22, 2024
@kf-gonzalez2 There is a originating issue here: ErikEJ/EntityFramework6PowerTools#147 and a follow up PR for EF 6 here: ErikEJ/EntityFramework6PowerTools#150 - I think this could be "by design"
roji commentedon May 22, 2024
FWIW I think the main usefulness in DbConnection.Clone() is precisely to clone the authentication information, so that the clone can actually be opened successfully. For example, the password does get copied to clones, so I'm not sure why AccessTokenCallback would be treated any differently:
ErikEJ commentedon May 22, 2024
@roji Thanks for joining! Yeah. could be an oversight - AccessTokenCallback was just added to 5.2.
Would be great to get it fixed in SqlClient. so that Microsoft.EntityFramwork.SqlServer could take advantage (by using a newer SqlClient). I think adding the above "fix" to that is out of scope.
David-Engel commentedon May 22, 2024
I agree, this seems to be a simple oversight in the original implementation. We should fix this in MDS.