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

Is this suitable for use with Blazor? #315

Closed
mojoejoejoe opened this issue Mar 15, 2023 · 4 comments
Closed

Is this suitable for use with Blazor? #315

mojoejoejoe opened this issue Mar 15, 2023 · 4 comments

Comments

@mojoejoejoe
Copy link

I understand its better to use a context factory with Blazor to avoid scope issues. I currently use it and get "a second operation was started on this context.." warnings

@yoshiyes
Copy link

Hello,

The problem does not come from the library, but the way EntityFramework works with Blazor.
I didn't recommend to use Ardalis Specification with Blazor Server.

Maybe, this PR #289 will introduce a new way to work with.

@ardalis
Copy link
Owner

ardalis commented Mar 17, 2023

I recommend my clients avoid Blazor Server because of the EF lifetime issues it has. Blazor WebAssembly avoids all such issues by working with APIs, and EF (and Specifications) work great in APIs.

@pavloss
Copy link

pavloss commented Apr 11, 2023

While I do agree with the API first approach, the PR #289 looks quite useful and worth looking into.

@fiseni
Copy link
Collaborator

fiseni commented Jul 21, 2023

Closing the issue, the feature is published in version 7.

@fiseni fiseni closed this as completed Jul 21, 2023
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

5 participants