mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
95ef1b6059
commit
3d24f1dbec
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using System;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Data.EntityTypeConfigurations;
|
||||
using FilterLists.Data.EntityTypeConfigurations.Junctions;
|
||||
|
|
@ -10,6 +11,7 @@ public class FilterListsDbContext : DbContext
|
|||
{
|
||||
public FilterListsDbContext(DbContextOptions options) : base(options)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DbSet<FilterList> FilterLists { get; set; }
|
||||
|
|
@ -33,6 +35,7 @@ public FilterListsDbContext(DbContextOptions options) : base(options)
|
|||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
Database.SetCommandTimeout((int)TimeSpan.FromMinutes(5).TotalSeconds);
|
||||
base.OnModelCreating(modelBuilder);
|
||||
ApplyConfigurations(modelBuilder);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue