EntityFramework6.Npgsql icon indicating copy to clipboard operation
EntityFramework6.Npgsql copied to clipboard

Missing destination table on INSERT

Open vertigo7x opened this issue 9 years ago • 1 comments

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!

vertigo7x avatar Oct 27 '17 08:10 vertigo7x

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.

roji avatar Oct 27 '17 13:10 roji