using Microsoft.EntityFrameworkCore; namespace HopFrame.Tests.Web.Models; public class MyDbContext : DbContext { public DbSet Table1 { get; set; } public DbSet Table2 { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseInMemoryDatabase(nameof(MyDbContext)); } }