-
-
Notifications
You must be signed in to change notification settings - Fork 158
Inheritance support #598
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
Can you provide us with a code example of the involved models and dbcontext you're trying to use with JsonApiDotNetCore which is currently not supported? |
Here is an example:
In this case is not possible to Post\Patch a row of type |
Can you share your |
|
I have been unable to reproduce the issue in the latest commit at the |
I have checked the |
Description
Entity Framework Core Inheritance is not fully support now. It’s support only if for each inherited type is created separeate
DBSet
inDbContext
. But if inheritance is define by FluentAPI then we can’t use this because Resource name is presently inseparable with type property in returning JSON.Solution
I suggest adding a second string parameter (entityName) to
ResourceAttribute
and toAddResource
method inContextGraphBuilder
. It allows to separate resource name and entity type and provides support for EF Core inheritance.Environment
The text was updated successfully, but these errors were encountered: