By default, in EF, this join table will not be displayed as an entity; instead, you will get many, many relationships that will be displayed as two navigation properties
.
Person.Stores
Store.People
- , - - .
var person =
var store = new Store{StoreID = 5}
ctx.AttachTo("Stores", store);
ctx.AttachTo("People", person);
person.Stores.Add(store);
ctx.SaveChanges();
- , , ,
Stub, .
, .
OP:
EF4, ( 13 ).
var person =
var store = new Store{StoreID = 5}
ctx.Stores.Attach(store);
person.Stores.Add(store);
ctx.SaveChanges();