Skip to content

Commit

Permalink
fix: set command time out on backoffice context
Browse files Browse the repository at this point in the history
  • Loading branch information
jvandaal authored and ArneD committed May 22, 2024
1 parent 29c5951 commit 1b95087
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public class BackOfficeContext : DbContext
public BackOfficeContext() { }

public BackOfficeContext(DbContextOptions<BackOfficeContext> options)
: base(options) { }
: base(options)
{
Database.SetCommandTimeout(10 * 60);
}

public DbSet<ParcelAddressRelation> ParcelAddressRelations { get; set; }

Expand Down

0 comments on commit 1b95087

Please sign in to comment.