aswi2021bc304crew-gitlab/tests/Leuze.Tests.Configuration/DbContextFactory.cs @ 678af8f3
1 |
using Microsoft.EntityFrameworkCore.Design; |
---|---|
2 |
|
3 |
namespace Leuze.Tests.Configuration |
4 |
{
|
5 |
/// <summary>
|
6 |
///
|
7 |
/// </summary>
|
8 |
public class DbContextFactory : IDesignTimeDbContextFactory<TestingStorageContext> |
9 |
{
|
10 |
/// <summary>
|
11 |
///
|
12 |
/// </summary>
|
13 |
/// <param name="args"></param>
|
14 |
/// <returns></returns>
|
15 |
public TestingStorageContext CreateDbContext(string[] args) |
16 |
=> new(DatabaseInMemoryFixture.GetDbContextOptionsBuilder().Options); |
17 |
}
|
18 |
}
|