-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Error when updating-from-query in TPH: "The destination column could not be found" (EF6) #315
Comments
Hello @cjmairair , Thank you for reporting, We will try this scenario this week and see what's missing. Best Regards, Jonathan |
+1 Same issue...
AssetFileRecord (our base class in the hierarchy) contains NetProceeds, as does the child class. This worked until I made AssetFileRecord part of a TPH hierarchy.
|
Hello @cjmairair , @ch-rob , We have made some great progress to support base type for We made a solution and all our unit tests are currently running. We will clean the code and release a new version tomorrow at the end of the day. Best Regards, Jonathan |
Hello @cjmairair , @ch-rob , The v1.8.0 has been released. A lot of files has been added/modified for reading the model, so make sure to report me errors if something occurs. Best Regards, Jonathan |
Hello @cjmairair , @ch-rob , This issue will be closed since it has been resolved. Feel free to reopen it if you feel otherwise. Best Regards, Jonathan |
Example of problem:
Let's say I have a base class, Animal, and there are different subclasses, in an EF TPH (Table per Hierarchy) setup.
The exception is "The destination column could not be found: age".
FYI: The property name "age" is the same as the column name in the DB ("age").
So, after reading Issue #238 , I though that my problem would be fixed by downloading the latest version:
Z.EntityFramework.Plus.EF6.dll - 1.7.14.0
Z.EntityFramework.Extensions.dll - 3.14.7.0
But it's not.
I also tried novamxd's forked code (from his repository) (see Issue #245), which supposedly fixed this problem, but it doesn't.
I know that this problem is related to "updating from query" and not "batch updating", but still, I was hoping that novamxd's code would fix this.
The text was updated successfully, but these errors were encountered: