mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-06 05:01:13 -07:00
22 lines
No EOL
501 B
C#
22 lines
No EOL
501 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Ombi.Store.Context.Postgres
|
|
{
|
|
public sealed class OmbiPostgresContext : OmbiContext
|
|
{
|
|
private static bool _created;
|
|
|
|
public OmbiPostgresContext(DbContextOptions<OmbiPostgresContext> options) : base(options)
|
|
{
|
|
if (_created) return;
|
|
_created = true;
|
|
|
|
Database.Migrate();
|
|
}
|
|
|
|
public override void Dispose()
|
|
{
|
|
base.Dispose();
|
|
}
|
|
}
|
|
} |