mirror of https://github.com/abpframework/abp.git
Browse Source
Also moves some initialization code from UnitOfWorkDbContextProvider to AbpDbContext.pull/3178/head
4 changed files with 41 additions and 7 deletions
@ -0,0 +1,14 @@ |
|||||
|
using Volo.Abp.Uow; |
||||
|
|
||||
|
namespace Volo.Abp.EntityFrameworkCore |
||||
|
{ |
||||
|
public class AbpEfCoreDbContextInitializationContext |
||||
|
{ |
||||
|
public IUnitOfWork UnitOfWork { get; } |
||||
|
|
||||
|
public AbpEfCoreDbContextInitializationContext(IUnitOfWork unitOfWork) |
||||
|
{ |
||||
|
UnitOfWork = unitOfWork; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace Volo.Abp.EntityFrameworkCore |
||||
|
{ |
||||
|
public interface IAbpEfCoreDbContext : IEfCoreDbContext |
||||
|
{ |
||||
|
void Initialize(AbpEfCoreDbContextInitializationContext initializationContext); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue