entity framework - many to many relationship
问题 Hi I try use Many to Many relationship with EF Fluent API. I have 2 POCO classes. public class Project { public int ProjectId { get; set; } public virtual ICollection<Author> Authors { get; set; } public Project() { Authors = new List<Author>(); } } public class Author { public int AuthorId { get; set; } public virtual ICollection<Project> Projects { get; set; } public Author() { Projects = new List<Project>(); } } And I map many to many relationship with this part of code: ////MANY TO MANY