mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
26 lines
622 B
C#
26 lines
622 B
C#
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Remotely.Server.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
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);
|
|
}
|
|
}
|