Exemplo n.º 1
0
 protected override void OnModelCreating(DbModelBuilder modelBuilder)
 {
     base.OnModelCreating(modelBuilder);
     ApplicationUserMapping.Map(modelBuilder);
     TenancyMapping.Map(modelBuilder);
     TenancyUserRoleMapping.Map(modelBuilder);
 }
Exemplo n.º 2
0
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
            builder.HasDefaultSchema("MainDb");

            ApplicationUserMapping.Map(builder.Entity <ApplicationUser>());
            ArticleArticleTagMapping.Map(builder.Entity <ArticleArticleTag>());
            ArticleCommentMapping.Map(builder.Entity <ArticleComment>());
            ArticleMapping.Map(builder.Entity <Article>());
            ArticleRatingMapping.Map(builder.Entity <ArticleRating>());
            ArticleTagMapping.Map(builder.Entity <ArticleTag>());
            ContactMapping.Map(builder.Entity <Contact>());
            PortfolioMapping.Map(builder.Entity <Portfolio>());
            SiteOrderMapping.Map(builder.Entity <SiteOrder>());
            SlideShowMapping.Map(builder.Entity <SlideShow>());
        }