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.
24 lines
705 B
C#
24 lines
705 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace EntityFrameworkCore.Jet.IntegrationTests.Model09
|
|
{
|
|
public class Context : DbContext
|
|
{
|
|
public Context(DbContextOptions options) : base (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());
|
|
}
|
|
}
|
|
} |