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.
21 lines
662 B
C#
21 lines
662 B
C#
using System.Data.SqlServerCe;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Microsoft.EntityFrameworkCore.Tests
|
|
{
|
|
public class SqlCeTestHelpers : TestHelpers
|
|
{
|
|
protected SqlCeTestHelpers()
|
|
{
|
|
}
|
|
|
|
public static SqlCeTestHelpers Instance { get; } = new SqlCeTestHelpers();
|
|
|
|
public override IServiceCollection AddProviderServices(IServiceCollection services)
|
|
=> services.AddEntityFrameworkSqlCe();
|
|
|
|
protected override void UseProviderOptions(DbContextOptionsBuilder optionsBuilder)
|
|
=> optionsBuilder.UseSqlCe(new SqlCeConnection("Data Source=DummyDatabase"));
|
|
}
|
|
}
|