Skip to content

Commit

Permalink
fix injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Nov 2, 2023
1 parent 571cbd3 commit 53c2544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static IServiceCollection Builder<TContext>(this IServiceCollection servi

services.AddHttpContextAccessor();
services.AddScoped<IUnitOfWork>(service => new UnitOfWork(service));
services.AddScoped<IBaseUnitOfWork, IUnitOfWork>();
services.AddScoped<IBaseUnitOfWork, UnitOfWork>();
services.AddScoped(service => new UnitOfWork(service).GetMapper());
services.AddTransient<RelationalCoreContext>(serviceProvider => serviceProvider.GetService<TContext>());
services.AddExceptionHandler((option) =>
Expand Down

0 comments on commit 53c2544

Please sign in to comment.