EntityFramework6.Npgsql
EntityFramework6.Npgsql copied to clipboard
Missing destination table on INSERT
Hi!
I have a many to many relationship between two entities. My controllers are generated with the controller generator and everything works fine except updating this relation.
The query generated is:
{INSERT INTO (SELECT "tableA"."A_id", "tableA"."B_id" FROM "public"."tableA" AS "tableA")("A_id","B_id") VALUES ($1,$2)}
This query is wrong because table name is missing after INTO statement. The execution of this query throws a syntax error.
Thanks in advance!
You're going to have to provide a bit more detail for anyone to look into this, please include a code sample with your model and the code generating the query.