Greetings,
I'm having a hard time with the ADO.NET Entity framework. I want to do a relation between 2 existing items, in a Many to Many table.
Example:
create table A(key int, value varchar(10));
create table B(key int, value varchar(10));
create table A_B(keyA int, keyB int);-- those are FK..
Now I want to do the relation between them, in the Entitie Framework, I've tried
A_B ab=new A_B{a=new A{key=1},b=new B{key=2}}
But I get 2 new elements in the A and B table.
How can I do this?
Thank you in advance