16 lines
537 B
C#
16 lines
537 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace JiShe.CollectBus.MongoDB
|
|
{
|
|
public class JiSheCollectBusMongoDbModule: AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddSingleton<IMongoContext, MongoContext>();
|
|
context.Services.AddSingleton<IUnitOfWork, UnitOfWork>();
|
|
context.Services.AddSingleton(typeof(IMongoRepository<>), typeof(MongoBaseRepository<>));
|
|
}
|
|
}
|
|
}
|