Skip to content

Documentation Update #1295

Closed
Closed
@btecu

Description

@btecu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions