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

Exception using inherited types #1

Open
dkattan opened this issue Sep 22, 2018 · 1 comment
Open

Exception using inherited types #1

dkattan opened this issue Sep 22, 2018 · 1 comment

Comments

@dkattan
Copy link

dkattan commented Sep 22, 2018

I have been attempting to use your library for a project that requires me to pull data from an API and upsert it into an MS SQL database.

I think I have found a bug, and I am going to try to fix it myself.

Essentially, when you have a class that inherits from another class, your GetNavigationalProperties method causes an exception to be thrown by entity framework indicating that an EntitySet cannot be identified for the type ‘MyInheritedType’. If this is an inherited type please use the base type instead.

This occurs whether my db context includes the inherited type or base type.

I was wondering if perhaps you have encountered this before. If not, I plan to correct it and submit a pull request correcting this behavior.

@FarhadJabiyev
Copy link
Owner

Thanks for creating the issue and explaining me it in a detail. I got it.. I used it a year ago and there was no such case. I will be very glad if you correct and submit the fix. Thanks for reaching me out.

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

2 participants