-
-
Notifications
You must be signed in to change notification settings - Fork 158
Documentation Update #1295
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
Please try this instead: builder.Services.AddJsonApi<AppDbContext>(
discovery: discovery => discovery.AddCurrentAssembly()) See the named parameters at: JsonApiDotNetCore/src/JsonApiDotNetCore/Configuration/ServiceCollectionExtensions.cs Lines 20 to 22 in 4183f62
|
Thanks @bkoelman, that worked! |
Thanks for reporting this. Updated docs are available at https://www.jsonapi.net/usage/resource-graph.html. |
Can the model be shared with the
EF Core
entity?When trying, getting
Partial declarations of 'UsersController' must not specify different base classes
, but it's unclear if that's the issue.Using the latest nuget package with
EF Core 7
and.NET 7
, the documentation steps don't seem to match, so it be great if it could be reviewed and updated.For example https://www.jsonapi.net/usage/resource-graph.html suggests using this:
builder.Services.AddJsonApi<AppDbContext>(discovery => discovery.AddCurrentAssembly());
However,
.AddCurrentAssembly()
doesn't seem to exist.The text was updated successfully, but these errors were encountered: