You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EntityFrameworkCore.Jet/test/EFCore.Jet.IntegrationTests/Model09/Context.cs

21 lines
661 B
C#

using System;
using Microsoft.EntityFrameworkCore;
namespace EntityFrameworkCore.Jet.IntegrationTests.Model09
{
public class Context(DbContextOptions options) : DbContext(options)
{
public DbSet<One> Ones { get; set; }
public DbSet<Two> Twos { get; set; }
public DbSet<Three> Threes { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.ApplyConfiguration(new OneMap());
modelBuilder.ApplyConfiguration(new TwoMap());
modelBuilder.ApplyConfiguration(new ThreeMap());
}
}
}