using Microsoft.EntityFrameworkCore; using NodaTime; namespace CoreWiki.Models; public class ApplicationDbContext : DbContext { public DbSet
Articles { get; set; } public ApplicationDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity
().HasData( new Article { Topic = "Home Page", Slug = "home-page", Content = "Welcome to your new CoreWiki installation" } ); } }