摘要:
请先看dudu的文章http://www.cnblogs.com/dudu/archive/2011/07/09/entity_framework_many_to_many.html一般的多对多关系数据库表:Mapping代码:Code Snippet modelBuilder.Entity<BlogPost>() .HasMany(b => b.Categories) .WithMany(c => c.CategoryBlogPosts) .Map ( m => { m.MapLeftKey("BlogPostID"); m.MapRight 阅读全文