dotnet-starter-kit icon indicating copy to clipboard operation
dotnet-starter-kit copied to clipboard

The record shows even after deletion.

Open Haytham-Natej opened this issue 1 year ago • 3 comments

I deleted the record from the brands page and it still shows

Haytham-Natej avatar Jan 23 '25 07:01 Haytham-Natej

Has been addressed in a pending PR. In Project Catalog.Infrastrucure, open file CatalogDbContext.cs In method OnModelCreating in above file add the line base.OnModelCreating(modelBuilder); after ArgumentNullException.ThrowIfNull(modelBuilder); so the mehod will look like this

protected override void OnModelCreating(ModelBuilder modelBuilder) { ArgumentNullException.ThrowIfNull(modelBuilder); base.OnModelCreating(modelBuilder); modelBuilder.ApplyConfigurationsFromAssembly(typeof(CatalogDbContext).Assembly); modelBuilder.HasDefaultSchema(SchemaNames.Catalog); }

kallievz avatar Jan 23 '25 07:01 kallievz

Thanks, deletion is working now.

Haytham-Natej avatar Jan 23 '25 07:01 Haytham-Natej

Please close, thanks for feedback.

kallievz avatar Jan 23 '25 09:01 kallievz