fix: 修复移除属性注入

This commit is contained in:
chenchun
2024-11-20 13:43:35 +08:00
parent bcaca0b782
commit 5d793344cd
4 changed files with 20 additions and 2 deletions

View File

@@ -32,6 +32,9 @@ public class DefaultSqlSugarDbContext : SqlSugarDbContext
protected IEntityChangeEventHelper EntityChangeEventHelper =>
LazyServiceProvider.LazyGetService<IEntityChangeEventHelper>(NullEntityChangeEventHelper.Instance);
public DefaultSqlSugarDbContext(IAbpLazyServiceProvider lazyServiceProvider) : base(lazyServiceProvider)
{
}
protected override void CustomDataFilter(ISqlSugarClient sqlSugarClient)
{
if (IsSoftDeleteFilterEnabled)
@@ -204,4 +207,5 @@ public class DefaultSqlSugarDbContext : SqlSugarDbContext
entityColumnInfo.IsPrimarykey = true;
}
}
}