mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
18 lines
400 B
C#
18 lines
400 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Remotely.Server.Data;
|
|
|
|
public class TestingDbContext : AppDb
|
|
{
|
|
public TestingDbContext(IWebHostEnvironment hostEnvironment)
|
|
: base(hostEnvironment)
|
|
{
|
|
}
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
{
|
|
options.UseInMemoryDatabase("Remotely");
|
|
base.OnConfiguring(options);
|
|
}
|
|
}
|