From 19df6aacd1ee8406fc077619b8f91810dc665d1b Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 4 Nov 2025 17:24:46 +0800 Subject: [PATCH] Rename IsOnlyForeignKeysDeleted to IsOnlyForeignKeysModified --- .../Volo/Abp/EntityFrameworkCore/AbpDbContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs index b52941ced5..ccdaf4bd7d 100644 --- a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs +++ b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs @@ -472,7 +472,7 @@ public abstract class AbpDbContext : DbContext, IAbpEfCoreDbContext, } } - protected virtual bool IsOnlyForeignKeysDeleted(EntityEntry entry) + protected virtual bool IsOnlyForeignKeysModified(EntityEntry entry) { return entry.Properties.All(x => x.IsModified && x.Metadata.IsForeignKey() && (x.CurrentValue == null || x.OriginalValue?.ToString() == x.CurrentValue?.ToString()));