-
-
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. UpdateFromQuery with TPT. (Z.EntityFramework.Plus.EF6 (v. 1.8.11)) #426
Comments
Hello @cjmairair ,
However, Entity Framework Extensions already support them. You can find some more info about what might happen to the support for this here: #269 (comment) Let me know if that answered your question. Best Regards, Jonathan |
Hello @cjmairair , This issue will be closed since it has been answered. Feel free to reopen it if you feel otherwise. Best Regards, Jonathan |
It does NOT work in EF Extensions either. I get the same behavior.
…On Thu, Oct 25, 2018 at 9:42 PM Jonathan Magnan ***@***.***> wrote:
Hello @cjmairair <https://github.com/cjmairair> ,
Inheritance is currently not supported in EF Plus.
However, Entity Framework Extensions
<https://entityframework-extensions.net/> already support them.
You can find some more info about what might happen to the support for
this here: #269 (comment)
<#269 (comment)>
Let me know if that answered your question.
Best Regards,
Jonathan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#426 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AchMQ82JDTGd6rKuZ-AbBMlgBKYkiOR8ks5uopLPgaJpZM4X6qON>
.
|
Hello @cjmairair , I will make my developer look at it later today, If it works, we will provide an online example, otherwise, we will fix it. Best Regards, Jonathan |
Hello @cjmairair , It seems our library support But doesn't yet with Do you need the Best Regards, Jonathan |
I have a similar issue, but there's no inheritance involved. This is my model, generated from an edmx:
Id is the primary key, and GroupId and UserId are foreign keys. Using Entity Framework Extensions 3.6.11:
this is the generated query (slightly reformatted) that I see in SQL Server Profiler:
which results in the following SqlException: And indeed, there is no key selection to join the StagingTable with the DestinationTable. Using Entity Framework Plus 1.8.13:
this is the generated query (slightly reformatted) that I see on SQL Server Profiler:
which results in the following error: And indeed, there is a faulty key selection to join A with B. |
Hello @Crossbow78 , Could you create your own issue with that? It will help to better follow it. It's easier when creating a new issue and referencing when needed a similar issue. Best Regards, Jonathan |
Yes, I do. The whole inheritance situation should be straightened out -
especially for how much this thing costs.
On Nov 13, 2018 1:54 PM, "Jonathan Magnan" <[email protected]> wrote:
Hello @cjmairair <https://github.com/cjmairair> ,
It seems our library support UpdateFromQuery with your scenario:
https://dotnetfiddle.net/Rea74P
But doesn't yet with DeleteFromQuery. If I remember well, it was intended
at first to avoid some mistake but perhaps we should relook this decision.
Do you need the DeleteFromQuery do work as well?
Best Regards,
Jonathan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#426 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AchMQ2D6GcCcHkYqSb4Km1kAWSGvUnWfks5uuz-DgaJpZM4X6qON>
.
|
Great, My developer already started to look at it this morning. I will give you an update next Monday. Best Regards, Jonathan |
Hello @cjmairair , The v3.16.12 has been released, We fixed some issue that was still unsupported in our library, could you try it and let me know if everything works as expected? Best Regards, Jonathan |
Hello @cjmairair , Did you have the chance to test the latest version? Best Regards, Jonathan |
It still doesn't work. I get the same error as originally. I know it's been a while. I just couldn't get around to testing this. I'm using Z.EntityFramework.Plus.EF6 1.10.3.0 and Z.EntityFramework.Extensions 4.0.9.0. |
Please re-open this issue.
…On Thu, Oct 25, 2018 at 9:42 PM Jonathan Magnan ***@***.***> wrote:
Hello @cjmairair <https://github.com/cjmairair> ,
Inheritance is currently not supported in EF Plus.
However, Entity Framework Extensions
<https://entityframework-extensions.net/> already support them.
You can find some more info about what might happen to the support for
this here: #269 (comment)
<#269 (comment)>
Let me know if that answered your question.
Best Regards,
Jonathan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#426 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AchMQ82JDTGd6rKuZ-AbBMlgBKYkiOR8ks5uopLPgaJpZM4X6qON>
.
|
Hello @cjmairair , Let start by using the following Online Example: https://dotnetfiddle.net/Rea74P Could you let me know what's not working? Can you reproduce the issue to give us some hint about where to start? Best Regards, Jonathan |
[image: image.png]
…On Fri, Oct 18, 2019 at 6:11 AM Jonathan Magnan ***@***.***> wrote:
Hello @cjmairair <https://github.com/cjmairair> ,
Let start by using the following Online Example:
https://dotnetfiddle.net/Rea74P
Could you let me know what's not working? Can you reproduce the issue to
give us some hint about where to start?
Best Regards,
Jonathan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#426?email_source=notifications&email_token=AHEEYQ32H5QTJLKVF66DWMDQPGYZXA5CNFSM4F7KUOG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBUMK4I#issuecomment-543737201>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHEEYQ2QU5QLQ42Q7KJTFWDQPGYZXANCNFSM4F7KUOGQ>
.
|
I will take a look at the .NET Fiddle now.
…On Fri, Oct 18, 2019 at 9:05 AM CJM Airstrip ***@***.***> wrote:
[image: image.png]
On Fri, Oct 18, 2019 at 6:11 AM Jonathan Magnan ***@***.***>
wrote:
> Hello @cjmairair <https://github.com/cjmairair> ,
>
> Let start by using the following Online Example:
> https://dotnetfiddle.net/Rea74P
>
> Could you let me know what's not working? Can you reproduce the issue to
> give us some hint about where to start?
>
> Best Regards,
>
> Jonathan
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#426?email_source=notifications&email_token=AHEEYQ32H5QTJLKVF66DWMDQPGYZXA5CNFSM4F7KUOG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBUMK4I#issuecomment-543737201>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHEEYQ2QU5QLQ42Q7KJTFWDQPGYZXANCNFSM4F7KUOGQ>
> .
>
|
Just to let you know, the image didn't appear if you wanted to show something |
I tried the .NET Fiddle and don't see the problem. I'll have to make a little local SQL Server database and test it out. |
hello @cjmairair Did you get the chance to test it out? Looking forward to hearing from you, Jon |
I have the following TPT setup.
When I try to do something like this:
context.Animals.Where(...).Update(o => new Animal() { Age = age });
I get an exception from Z.EntityFramework.Plus.EF6 (v. 1.8.11).
System.Data.SqlClient.SqlException: Invalid column name 'Id'
(It seems like the exception happens before any SQL is even generated, because I ran SQL Profiler and didn't see anything. But that doesn't seem right, because the exception was a SqlException.)
The text was updated successfully, but these errors were encountered: