using System; using System.Data.Common; using EntityFrameworkCore.Jet; using Microsoft.EntityFrameworkCore; namespace EFCore.Jet.Integration.Test.Model11 { public class TestContext : DbContext { public TestContext(DbConnection connection) : base(new DbContextOptionsBuilder().UseJet(connection).Options) { } public DbSet InternCodes { get; set; } public DbSet Models { get; set; } public DbSet Versions { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfiguration(new VersionMap()); } } }