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/Model11/Context.cs

22 lines
670 B
C#

using System;
using System.Data.Common;
using EntityFrameworkCore.Jet;
using Microsoft.EntityFrameworkCore;
namespace EFCore.Jet.Integration.Test.Model11
{
public class TestContext : DbContext
{
public TestContext(DbConnection connection) : base(new DbContextOptionsBuilder<TestContext>().UseJet(connection).Options) { }
public DbSet<InternCode> InternCodes { get; set; }
public DbSet<Model> Models { get; set; }
public DbSet<Version> Versions { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfiguration(new VersionMap());
}
}
}