|
|
@ -24,11 +24,14 @@ public abstract class AbpDataProtectionDbContext<TDbContext> : AbpDbContext<TDbC |
|
|
{ |
|
|
{ |
|
|
base.OnConfiguring(optionsBuilder); |
|
|
base.OnConfiguring(optionsBuilder); |
|
|
|
|
|
|
|
|
|
|
|
if (LazyServiceProvider != null) |
|
|
|
|
|
{ |
|
|
// TODO: 需要优化表达式树
|
|
|
// TODO: 需要优化表达式树
|
|
|
// optionsBuilder.AddInterceptors(LazyServiceProvider.GetRequiredService<AbpDataProtectedReadEntityInterceptor>());
|
|
|
// optionsBuilder.AddInterceptors(LazyServiceProvider.GetRequiredService<AbpDataProtectedReadEntityInterceptor>());
|
|
|
//optionsBuilder.AddInterceptors(LazyServiceProvider.GetRequiredService<AbpDataProtectedWriteEntityInterceptor>());
|
|
|
//optionsBuilder.AddInterceptors(LazyServiceProvider.GetRequiredService<AbpDataProtectedWriteEntityInterceptor>());
|
|
|
optionsBuilder.AddInterceptors(LazyServiceProvider.GetRequiredService<AbpDataProtectedWritePropertiesInterceptor>()); |
|
|
optionsBuilder.AddInterceptors(LazyServiceProvider.GetRequiredService<AbpDataProtectedWritePropertiesInterceptor>()); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected override void ApplyAbpConceptsForAddedEntity(EntityEntry entry) |
|
|
protected override void ApplyAbpConceptsForAddedEntity(EntityEntry entry) |
|
|
{ |
|
|
{ |
|
|
|