Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. modelBuilder.Entity<BlogPost>()
  2. .HasMany(b => b.Categories)
  3. .WithMany(c => c.BlogPosts)
  4. .Map
  5. (
  6. m =>
  7. {
  8. m.MapLeftKey("BlogPostID");
  9. m.MapRightKey("CategoryID");
  10. m.ToTable("BlogPost_Category");
  11. }
  12. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement