using FinancialApi.Application; using Microsoft.EntityFrameworkCore; namespace FinancialApi.Infrastructure; public class AccountDbContext : DbContext { public AccountDbContext(DbContextOptions options) : base(options) { } public DbSet Accounts => Set(); protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasKey(x => x.Id); modelBuilder.Entity().HasData( new Account(1, 100.00m), new Account(2, 500.00m) ); } }