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
Abp version 4.1.0-rc.2
User Interface: MVC
Database provider: EF Core
How to reproduce:
Run cmd "abp new Acme.BookStore --preview"
Run Acme.BookStore.DbMigrator and warning occurred
I changed the MultipleActiveResultSets in Default connection from true to false, then the warning disappeared.
"Default": "Server=(LocalDb)\MSSQLLocalDB;Database=BookStore;Trusted_Connection=True;MultipleActiveResultSets=true"
I also tried the v3.3.2 and v4.0.2 start templates, there's no this warning even MultipleActiveResultSets value is true.
Below is the detail info, I would like to know why this happened, Thank you.
[18:03:50 WRN] Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information. To identify the code which triggers this warning, call 'ConfigureWarnings(w => w.Throw(RelationalEventId.SavepointsDisabledBecauseOfMARS))'.
The text was updated successfully, but these errors were encountered:
@maliming This problem is caused by the introduction of the SavePoint feature in EF Core 5.0.1, which is the default behavior in EF Core 5.0.1. I think in our default template, MultipleActiveResultSets=true should be removed (for SQL Server).
If you need to disable the SavePoint feature, you can refer to this Issue (dotnet/efcore#23269).
Abp version 4.1.0-rc.2
User Interface: MVC
Database provider: EF Core
How to reproduce:
I changed the MultipleActiveResultSets in Default connection from true to false, then the warning disappeared.
"Default": "Server=(LocalDb)\MSSQLLocalDB;Database=BookStore;Trusted_Connection=True;MultipleActiveResultSets=true"
I also tried the v3.3.2 and v4.0.2 start templates, there's no this warning even MultipleActiveResultSets value is true.
Below is the detail info, I would like to know why this happened, Thank you.
[18:03:50 WRN] Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information. To identify the code which triggers this warning, call 'ConfigureWarnings(w => w.Throw(RelationalEventId.SavepointsDisabledBecauseOfMARS))'.
The text was updated successfully, but these errors were encountered: