Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 83878d0

Browse files
committed
Fix stupid
1 parent 67bb62d commit 83878d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shiny.Extensions.EntityFramework/EntityFrameworkExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ namespace Shiny;
99

1010
public static class EntityFrameworkExtensions
1111
{
12-
public static IServiceCollection AddDbContextAuditing<T>(this IServiceCollection services) where T : class, IContextInfoProvider
12+
public static IServiceCollection AddDbContextAuditing<TContextProvider>(this IServiceCollection services) where TContextProvider : class, IContextInfoProvider
1313
{
14-
services.AddScoped<T>();
14+
services.AddScoped<IContextInfoProvider, TContextProvider>();
1515
services.AddScoped<AuditSaveChangesInterceptor>();
1616
return services;
1717
}

0 commit comments

Comments
 (0)