Ortund

Untitled

Jul 4th, 2014
235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         protected override void OnModelCreating(DbModelBuilder modelBuilder)
  2.         {
  3.             base.OnModelCreating(modelBuilder);
  4.  
  5.             modelBuilder.Configurations.Add(new UserDBContext());
  6.             modelBuilder.Configurations.Add(new RoleDBContext());
  7.             modelBuilder.Configurations.Add(new ArticleDBContext());
  8.             modelBuilder.Configurations.Add(new ArticleCommentDBContext());
  9.             modelBuilder.Configurations.Add(new ForumTitleDBContext());
  10.             modelBuilder.Configurations.Add(new ForumCategoryDBContext());
  11.             modelBuilder.Configurations.Add(new ForumThreadDBContext());
  12.             modelBuilder.Configurations.Add(new ForumPostDBContext());
  13.         }
RAW Paste Data