mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
549 B
20 lines
549 B
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
using Volo.Abp.Domain;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.Uow.MongoDB;
|
|
|
|
namespace Volo.Abp.MongoDB
|
|
{
|
|
[DependsOn(typeof(AbpDddDomainModule))]
|
|
public class AbpMongoDbModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.TryAddTransient(
|
|
typeof(IMongoDbContextProvider<>),
|
|
typeof(UnitOfWorkMongoDbContextProvider<>)
|
|
);
|
|
}
|
|
}
|
|
}
|