protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); ApplicationSeed.ApplySeed(builder); builder.Entity <ApplicationUser>(ConfigurateApplicationUser); builder.Entity <BlogDataModel>(ConfigurateBlog); builder.Entity <PostDataModel>(ConfiguratePost); builder.Entity <Author>(ConfigurateAuthor); builder.Entity <CommentDataModel>(ConfigurateComment); builder.Entity <OptionDataModel>(ConfigurateOption); }
protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); ApplicationSeed.ApplySeed(builder); builder.ApplyConfigurationsFromAssembly(typeof(ApplicationDbContext).Assembly); }