SHARE
TWEET

Untitled

Ortund Jul 4th, 2014 228 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top