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 67a0d1d971..2701ce8e29 100644 --- a/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs +++ b/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs @@ -12,7 +12,7 @@ namespace Volo.Abp.ObjectExtending public static ObjectExtensionManager MapEfCoreDbContext( [NotNull] this ObjectExtensionManager objectExtensionManager, [NotNull] Action modelBuilderAction) - where TDbContext: DbContext + where TDbContext: DbContext , IHasExtraProperties { return objectExtensionManager.AddOrUpdate( typeof(TDbContext), @@ -25,7 +25,7 @@ namespace Volo.Abp.ObjectExtending public static ObjectExtensionManager MapEfCoreEntity( [NotNull] this ObjectExtensionManager objectExtensionManager, [NotNull] Action entityTypeBuildAction) - where TEntity : IEntity + where TEntity : IHasExtraProperties, IEntity { return MapEfCoreEntity( objectExtensionManager,