using System; using Microsoft.EntityFrameworkCore; namespace EntityFrameworkCore.Jet.IntegrationTests.Model01 { public class Context(DbContextOptions options) : DbContext(options) { public DbSet Students { get; set; } public DbSet Standards { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity() .HasIndex(_ => new {_.StandardName, _.StandardId}).HasDatabaseName("MultipleColumnIndex"); modelBuilder.Entity().HasIndex(_ => _.StudentName); } } }