Closed Muhahe closed 1 year ago
Hello @Muhahe ,
Thank you for reporting, my developer will look at it.
Best Regards,
Jon
Hello @JonathanMagnan,
Thank you for quick reply, if there is anything more i can provide you to help with this, please let me know.
In meantime i tried this with Entity framework Classic -> UpdateFromQuery alternative and result was same for me.
So maybe is this even possible with Npgsql provider?
Regards Muhahe
Hello @Muhahe ,
A new version of EF Plus has been released today.
This issue should have been fixed. The fix for EF Classic will be deployed next month.
Let me know if everything works as expected.
Best Regards,
Jon
Hello @JonathanMagnan
thank you verry much for quick response and fix. Now it works like a charm for me.
Best regards, Lubos
1. Description
Im trying to increment value in postgresql database by Update() method, but i always getting invalid SQL query. I tried both codeFirst and both DB first approach but without difference.
My database table looks like this
Then im trying this piece of code (based on online example)
I also tried it in dotnetfiddle and there it works, but in my case, when im using postresql database my query looks like
where you can see that AS "C1" on line 2 and 3 makes this query invalid
When i try this, without increment to just setup value
query is okay
2. Exception
If you are seeing an exception, include the full exception details (message and stack trace).
3. Fiddle or Project
I tried this on modified fiddle you provide in documentation but unfortunatelly it works there. So im realy confused.
4. Any further technical details
My project is .Net Framework 4.7.2 with nuget packages