lingling
2025-03-07 1b33c9c58b57bde6b60de30dfc8727132b92829d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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<>));
            });
 
        }
    }
}