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#
|
8 years ago
|
using System;
|
||
|
|
using Microsoft.EntityFrameworkCore;
|
||
|
|
|
||
|
6 years ago
|
namespace EntityFrameworkCore.Jet.IntegrationTests.Model09
|
||
|
8 years ago
|
{
|
||
|
|
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());
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|