feat: restructure ProgramManager area and integrate Shared.Contracts
This commit is contained in:
@@ -42,16 +42,7 @@ public static class DependencyInjection
|
||||
// Register IAppDbContext
|
||||
services.AddScoped<IProgramManagerDbContext>(provider =>
|
||||
provider.GetRequiredService<ProgramManagerDbContext>());
|
||||
|
||||
|
||||
|
||||
#region GozareshgirDbContext
|
||||
|
||||
services.AddDbContext<GozareshgirDbContext>(x => x.UseSqlServer(configuration.GetConnectionString("GozareshgirDb")));
|
||||
|
||||
services.AddScoped<IGozareshgirDbContext>(provider =>
|
||||
provider.GetRequiredService<GozareshgirDbContext>());
|
||||
#endregion
|
||||
|
||||
// Unit of Work
|
||||
services.AddScoped<IUnitOfWork, UnitOfWork>();
|
||||
|
||||
Reference in New Issue
Block a user