You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/src/Ombi.Store/Context/Sqlite/ExternalSqliteContext.cs

17 lines
456 B

using Microsoft.EntityFrameworkCore;
5 years ago
namespace Ombi.Store.Context.Sqlite
{
5 years ago
public sealed class ExternalSqliteContext : ExternalContext
{
private static bool _created;
5 years ago
public ExternalSqliteContext(DbContextOptions<ExternalSqliteContext> options) : base(options)
{
if (_created) return;
_created = true;
Database.SetCommandTimeout(60);
Database.Migrate();
}
}
}