fix code for leave service
This commit is contained in:
parent
cc14ec28b0
commit
5cd20a0b47
8 changed files with 16 additions and 28 deletions
|
|
@ -12,7 +12,7 @@ namespace BMA.EHR.Infrastructure
|
|||
public static IServiceCollection AddLeavePersistence(this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
services.AddScoped<IApplicationDBExamContext>(provider => provider.GetService<ApplicationDBExamContext>());
|
||||
|
||||
|
||||
// leave db context
|
||||
var connectionStringLeave = configuration.GetConnectionString("LeaveConnection");
|
||||
|
|
@ -65,7 +65,7 @@ namespace BMA.EHR.Infrastructure
|
|||
}),
|
||||
ServiceLifetime.Transient);
|
||||
|
||||
|
||||
services.AddScoped<IApplicationDBExamContext>(provider => provider.GetService<ApplicationDBExamContext>());
|
||||
|
||||
return services;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue