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.
43 lines
1.6 KiB
43 lines
1.6 KiB
using Volo.Abp.Autofac;
|
|
using Volo.Abp.Data;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace EShopOnAbp.Shared.Hosting
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpAutofacModule),
|
|
typeof(AbpDataModule)
|
|
)]
|
|
public class EShopOnAbpSharedHostingModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
ConfigureDatabaseConnections();
|
|
}
|
|
private void ConfigureDatabaseConnections()
|
|
{
|
|
Configure<AbpDbConnectionOptions>(options =>
|
|
{
|
|
options.Databases.Configure("AdministrationService", database =>
|
|
{
|
|
database.MappedConnections.Add("AbpAuditLogging");
|
|
database.MappedConnections.Add("AbpPermissionManagement");
|
|
database.MappedConnections.Add("AbpSettingManagement");
|
|
database.MappedConnections.Add("AbpFeatureManagement");
|
|
database.MappedConnections.Add("AbpBlobStoring");
|
|
});
|
|
|
|
options.Databases.Configure("IdentityService", database =>
|
|
{
|
|
database.MappedConnections.Add("AbpIdentity");
|
|
database.MappedConnections.Add("AbpIdentityServer");
|
|
});
|
|
//
|
|
// options.Databases.Configure("ProductService", database =>
|
|
// {
|
|
// database.MappedConnections.Add("ProductService");
|
|
// });
|
|
});
|
|
}
|
|
}
|
|
}
|