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.
23 lines
738 B
C#
23 lines
738 B
C#
using System.Data.Jet;
|
|
using Extensions.DependencyInjection;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace EntityFrameworkCore.Jet.Tests
|
|
{
|
|
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 JetConnection(JetConnection.GetConnectionString("DummyDatabase.accdb")));
|
|
}
|
|
}
|