Browse Source
Merge pull request #12760 from abpframework/liangshiwei/mongodb
Add missing condition for UpdatManyAsync
pull/12762/head
Enis Necipoglu
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/MongoDbRepository.cs
|
|
|
@ -231,8 +231,8 @@ public class MongoDbRepository<TMongoDbContext, TEntity> |
|
|
|
{ |
|
|
|
SetModificationAuditProperties(entity); |
|
|
|
|
|
|
|
var isSoftDeleteEntity = typeof(ISoftDelete).IsAssignableFrom(typeof(TEntity)); |
|
|
|
if (isSoftDeleteEntity) |
|
|
|
var isEntityDeleted = entity is ISoftDelete softDeleteEntity && softDeleteEntity.IsDeleted; |
|
|
|
if (isEntityDeleted) |
|
|
|
{ |
|
|
|
SetDeletionAuditProperties(entity); |
|
|
|
TriggerEntityDeleteEvents(entity); |
|
|
|
|