-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
EF Core适配器的QueryAsync方法不能使用懒加载,不然无法通过已关闭的数据库连接获取到数据。
需要查询后马上ToList();
Expected Behavior
后台切换成EF Core后运行后台,用户、角色、组织等都报错。
Interactive render mode
Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)
Steps To Reproduce
Exceptions (if any)
Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling 'Dispose' on the context instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.
Object name: 'BootstrapAdminContext
.NET Version
NET9.0
Anything else?
最新版:.net 10
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working