From 79fe90913f38f3302fc0379feb854c6e040c8e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Thu, 15 Mar 2018 15:53:21 +0300 Subject: [PATCH] Fix soft delete filter for AbpDbContext. --- .../Volo/Abp/EntityFrameworkCore/AbpDbContext.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs b/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs index a8eb636d5b..591f7fb00c 100644 --- a/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs +++ b/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs @@ -274,6 +274,11 @@ namespace Volo.Abp.EntityFrameworkCore return true; } + if (typeof(ISoftDelete).IsAssignableFrom(typeof(TEntity))) + { + return true; + } + return false; }