47820ba32a
- Файл со словами-исключениями в spellchecker
15 lines
349 B
C#
15 lines
349 B
C#
using Persistence.Database.Model;
|
|
|
|
namespace Persistence.IntegrationTests.Extensions;
|
|
|
|
public static class EFCoreExtensions
|
|
{
|
|
public static void CleanupDbSet<T>(this PersistenceDbContext dbContext)
|
|
where T : class
|
|
{
|
|
var dbSet = dbContext.Set<T>();
|
|
dbSet.RemoveRange(dbSet);
|
|
dbContext.SaveChanges();
|
|
}
|
|
}
|