fix(data): load connection string from connections.json; correct HasIndex comment

This commit is contained in:
Daniel Harvey
2026-05-18 22:39:20 -04:00
parent fdd44b2bce
commit e34f76b3bb
2 changed files with 20 additions and 10 deletions
@@ -53,9 +53,9 @@ public class TrackConfiguration : BaseEntityConfiguration<TrackEntity>
builder.Property(e => e.CreatedByUserId)
.HasColumnName("created_by_user_id");
// Explicit index on is_deleted so soft-delete global query filters are
// not full table scans. base.Configure may or may not add this depending
// on the BlazorBlocks.Data version; declaring it here guarantees it.
// Names the is_deleted index explicitly. BaseEntityConfiguration.Configure already
// calls HasIndex(e => e.IsDeleted); this adds HasDatabaseName so EF always uses
// "IX_track_is_deleted" regardless of auto-naming conventions.
builder.HasIndex(e => e.IsDeleted).HasDatabaseName("IX_track_is_deleted");
}
}