From 1dc515294c6273ac90a36b28aa6065ac0e1d4ca3 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Wed, 5 May 2021 22:05:00 +0800 Subject: [PATCH] Update EfCoreObjectExtensionManagerExtensions --- .../ObjectExtending/EfCoreObjectExtensionManagerExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,