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
After upgrade to EF Core 7/.NET 7.0, running a simple db app with debug logging, I noticed the following that the disposed log message does not contain any values, just empty placeholders. The log entry just above still contains the values.
dbug: Microsoft.EntityFrameworkCore.Infrastructure[10407]
'MyContext' disposed.
dbug: Microsoft.EntityFrameworkCore.Database.Connection[20007]
Disposing connection to database 'Repro' on server 'localhost'.
dbug: Microsoft.EntityFrameworkCore.Database.Connection[20008]
Disposed connection to database '' on server '' (1ms).
Note for triage: we added these log messages in EF7 (#27920), but, at least on some providers, the database name and server are cleared before this message is logged. We could remove the parameters, or display a different message when they are not available, or record them earlier so they are always available. Or we could do nothing and leave the message as-is for providers where these things are no longer available.
After upgrade to EF Core 7/.NET 7.0, running a simple db app with debug logging, I noticed the following that the disposed log message does not contain any values, just empty placeholders. The log entry just above still contains the values.
Repro:
Include provider and version information
EF Core version: 7.0.0
Database provider:: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7
Operating system: Win11
IDE: VS 17.4
The text was updated successfully, but these errors were encountered: