|
|
@ -12,6 +12,7 @@ using System.Threading.Tasks; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.EntityFrameworkCore.ChangeTracking; |
|
|
using Microsoft.EntityFrameworkCore.ChangeTracking; |
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
|
|
using Microsoft.Extensions.Options; |
|
|
using Microsoft.Extensions.Logging; |
|
|
using Microsoft.Extensions.Logging; |
|
|
using Microsoft.Extensions.Logging.Abstractions; |
|
|
using Microsoft.Extensions.Logging.Abstractions; |
|
|
using Volo.Abp.Auditing; |
|
|
using Volo.Abp.Auditing; |
|
|
@ -72,6 +73,8 @@ public abstract class AbpDbContext<TDbContext> : DbContext, IAbpEfCoreDbContext, |
|
|
|
|
|
|
|
|
public ILogger<AbpDbContext<TDbContext>> Logger => LazyServiceProvider.LazyGetService<ILogger<AbpDbContext<TDbContext>>>(NullLogger<AbpDbContext<TDbContext>>.Instance); |
|
|
public ILogger<AbpDbContext<TDbContext>> Logger => LazyServiceProvider.LazyGetService<ILogger<AbpDbContext<TDbContext>>>(NullLogger<AbpDbContext<TDbContext>>.Instance); |
|
|
|
|
|
|
|
|
|
|
|
public AbpEfCoreNavigationHelper AbpEfCoreNavigationHelper => LazyServiceProvider.LazyGetRequiredService<AbpEfCoreNavigationHelper>(); |
|
|
|
|
|
|
|
|
private static readonly MethodInfo ConfigureBasePropertiesMethodInfo |
|
|
private static readonly MethodInfo ConfigureBasePropertiesMethodInfo |
|
|
= typeof(AbpDbContext<TDbContext>) |
|
|
= typeof(AbpDbContext<TDbContext>) |
|
|
.GetMethod( |
|
|
.GetMethod( |
|
|
|