-
-
Notifications
You must be signed in to change notification settings - Fork 158
Doesn't work without entity framework #261
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
Comments
Yeah, to be clear, at the current time, you can’t build a JADNC app without taking EF as a dependency. However, you are not required to use it. Since the main project depends on EF directly, everything gets EF as a transitive dependency. This is changing soon. I have one bug that is being addressed by #254, then EF will be extracted into a separate package that the main project will depend on. Then, around v3, to use EF you will have to install JsonApiDotNetCore.EntityFramework on top of it. Now, back to your question, the error message states that it is trying to resolve the Now all that said, the example contains this, which should be unnecessary. If it’s actually required, then it’s a bug. JsonApiDotNetCore/src/Examples/NoEntityFrameworkExample/Startup.cs Lines 45 to 49 in e7c65db
|
Closing, discussion moved to #292. Feel free to reopen if needed. |
No enity framework example itself has dependency on ef
https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/Examples/NoEntityFrameworkExample/NoEntityFrameworkExample.csproj
I did everything and without passing DbContext, it won't work.
It seems like DbContext is required no matter if I use it
The text was updated successfully, but these errors were encountered: