Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

EF 6 and many to many relationship

$
0
0

i m working on EF 6 (mapping with many to many relationship) ,see

https://www.codeproject.com/Articles/234606/Creating-a-Many-To-Many-Mapping-Using-Code-First

where it created "PersonCourses"  as middle table ,now i have two problem with that In a many-to-many relationship EF manages the join table internally and hidden. It's a table without an Entity class in your model. 

so what if i need to access "PersonCourses"   in my code (project) and what if i  need to add certain columns with it ??


Viewing all articles
Browse latest Browse all 1698

Trending Articles