From bc7d3cedc9266254768f05a49ec5484504285daa Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Thu, 26 May 2022 10:59:18 +0800 Subject: [PATCH] rename isSoftDeleteEntity to isEntityDeleted --- .../Volo/Abp/Domain/Repositories/MongoDB/MongoDbRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/MongoDbRepository.cs b/framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/MongoDbRepository.cs index e0c4c531c4..4f7b985faa 100644 --- a/framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/MongoDbRepository.cs +++ b/framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/MongoDbRepository.cs @@ -231,8 +231,8 @@ public class MongoDbRepository { SetModificationAuditProperties(entity); - var isSoftDeleteEntity = entity is ISoftDelete softDeleteEntity && softDeleteEntity.IsDeleted; - if (isSoftDeleteEntity) + var isEntityDeleted = entity is ISoftDelete softDeleteEntity && softDeleteEntity.IsDeleted; + if (isEntityDeleted) { SetDeletionAuditProperties(entity); TriggerEntityDeleteEvents(entity);