Skip to content

Commit

Permalink
Remove unused code from extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeegaan committed Apr 18, 2023
1 parent 2ee4a3b commit 38ad286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ namespace Umbraco.Cms.Persistence.EFCore.Compose;

public class EFCoreComposer : IComposer
{
public void Compose(IUmbracoBuilder builder) => builder.Services.AddUmbracoEFCore(builder.Config);
public void Compose(IUmbracoBuilder builder) => builder.Services.AddUmbracoEFCore();
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ namespace Umbraco.Extensions;

public static class UmbracoEFCoreServiceCollectionExtensions
{
public static IServiceCollection AddUmbracoEFCore(this IServiceCollection services, IConfiguration configuration, Action<DbContextOptionsBuilder, IConfiguration>? optionsAction = null)
public static IServiceCollection AddUmbracoEFCore(this IServiceCollection services)
{

// services.AddUnique<IDatabaseInfo, EFDatabaseInfo>();
services.AddUnique<IAmbientEFCoreScopeContextStack, AmbientEFCoreScopeContextStack>();
return services;
}
Expand Down

0 comments on commit 38ad286

Please sign in to comment.