Loading

摘要: 请先看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 阅读全文
posted @ 2011-07-19 17:44 today4king 阅读(3292) 评论(0) 推荐(0) 编辑