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.
22 lines
778 B
C#
22 lines
778 B
C#
using EntityFrameworkCore.Jet;
|
|
using Extensions.DependencyInjection;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace EntityFramework.Jet.FunctionalTests
|
|
{
|
|
public class JetTestHelpers : TestHelpers
|
|
{
|
|
protected JetTestHelpers()
|
|
{
|
|
}
|
|
|
|
public static JetTestHelpers Instance { get; } = new JetTestHelpers();
|
|
|
|
public override IServiceCollection AddProviderServices(IServiceCollection services)
|
|
=> services.AddEntityFrameworkJet();
|
|
|
|
protected override void UseProviderOptions(DbContextOptionsBuilder optionsBuilder)
|
|
=> optionsBuilder.UseJet(new System.Data.Jet.JetConnection(ConnectionStringBuilderHelper.GetJetConnectionString("DummyDatabase")));
|
|
}
|
|
} |