using Microsoft.EntityFrameworkCore; using Persistence.Database.Model; namespace Persistence.IntegrationTests; public static class EFCoreExtensions { public static void CleanupDbSet(this DbContext dbContext) where T : class { var dbset = dbContext.Set(); dbset.RemoveRange(dbset); dbContext.SaveChanges(); } }