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 { Id = 1, Topic = "Home Page", Slug = "home-page", ViewCount = 0, Content = "Welcome to your new CoreWiki installation" } ); } }