diff --git a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs index a7e406f70f..86d4115421 100644 --- a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs +++ b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs @@ -167,7 +167,7 @@ namespace Volo.Abp.ObjectExtending foreach (var efCoreEntityMapping in efCoreEntityMappings) { - efCoreEntityMapping?.EntityTypeBuildAction?.Invoke(typeBuilder); + efCoreEntityMapping.EntityTypeBuildAction?.Invoke(typeBuilder); } foreach (var property in objectExtension.GetProperties()) @@ -211,7 +211,7 @@ namespace Volo.Abp.ObjectExtending foreach (var efCoreDbContextMapping in efCoreDbContextMappings) { - efCoreDbContextMapping?.ModelBuildAction?.Invoke(modelBuilder); + efCoreDbContextMapping.ModelBuildAction?.Invoke(modelBuilder); } } }