geekbot/Geekbot.net/Database/InMemoryDatabase.cs

17 lines
439 B
C#
Raw Normal View History

2018-05-09 18:51:53 +02:00
using Microsoft.EntityFrameworkCore;
namespace Geekbot.net.Database
{
public class InMemoryDatabase : DatabaseContext
{
private readonly string _name;
public InMemoryDatabase(string name)
{
_name = name;
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseInMemoryDatabase(_name);
2018-05-09 18:51:53 +02:00
}
}