Skip to content
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

Update the Blazor CRUD scaffolder to use IDbContextFactory instead of injecting the DbContext directly in to components #2693

Open
danroth27 opened this issue Mar 28, 2024 · 0 comments

Comments

@danroth27
Copy link
Member

We've received feedback from users that the component code generated by the Blazor CRUD scaffolder should use the IDbContextFactory instead of injecting the DbContext directly to avoid making multiple overlapping queries with the same DbContext instance. With static server-side rendering this is less likely to happen, but we think it's best to make the change to be in line with our documented Blazor guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant