using System; using Microsoft.EntityFrameworkCore; namespace EntityFrameworkCore.Jet.IntegrationTests.Model30 { public class Context : DbContext { public Context(DbContextOptions options) : base (options) { } public DbSet Answers { get; set; } public DbSet Questions { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasMany(q => q.Answers) .WithOne(x => x.Question); base.OnModelCreating(modelBuilder); } } }