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.Integration.Test/Model08/Context.cs

27 lines
740 B
C#

using System;
using Microsoft.EntityFrameworkCore;
namespace EFCore.Jet.Integration.Test.Model08
{
public class Context : DbContext
{
public Context(DbContextOptions options) : base (options)
{ }
public DbSet<File> Files { get; set; }
public DbSet<GalleryImage> GalleryImages { get; set; }
public DbSet<PageImage> PageImages { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.ApplyConfiguration(new FileMap());
modelBuilder.ApplyConfiguration(new GalleryImageMap());
modelBuilder.ApplyConfiguration(new PageImageMap());
}
}
}