Skip to content

Commit

Permalink
Update CatalogDbContext.cs
Browse files Browse the repository at this point in the history
Added base.OnModelCreating(modelBuilder); so that base functionality works i.e soft delete
  • Loading branch information
codewithayaz authored Jan 18, 2025
1 parent 8e762f0 commit bf9ca3b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public CatalogDbContext(IMultiTenantContextAccessor<FshTenantInfo> multiTenantCo
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
ArgumentNullException.ThrowIfNull(modelBuilder);
base.OnModelCreating(modelBuilder);
modelBuilder.ApplyConfigurationsFromAssembly(typeof(CatalogDbContext).Assembly);
modelBuilder.HasDefaultSchema(SchemaNames.Catalog);
}
Expand Down

0 comments on commit bf9ca3b

Please sign in to comment.