using LifePayment.Domain;
|
using Microsoft.Extensions.DependencyInjection;
|
using Volo.Abp.EntityFrameworkCore;
|
using Volo.Abp.Modularity;
|
|
namespace LifePayment.EntityFrameworkCore
|
{
|
[DependsOn(typeof(LifePaymentServicesDomainModule))]
|
public class LifePaymentServicesEntityFrameworkCoreModule : AbpModule
|
{
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
{
|
context.Services.AddAbpDbContext<LifePaymentServicesDbContext>(options =>
|
{
|
options.AddDefaultRepositories<ILifePaymentServicesDbContext>(true);
|
options.SetDefaultRepositoryClasses(typeof(LifePaymentServicesRepositoryBase<,>), typeof(LifePaymentServicesRepositoryBase<>));
|
});
|
|
}
|
}
|
}
|