public static ServiceConfigurationContext RegisterEntityEqualizer(this ServiceConfigurationContext context, IEntityEqualizer entityEqualizer) { if (entityEqualizer != null) { EntityEqualizerContainer.Instance.Add(entityEqualizer); } return(context); }
public static IServiceCollection AddEntityEqualizer(this IServiceCollection services, IEntityEqualizer entityEqualizer) { GetOrCreateEntityEqualizerContainer(services).Add(entityEqualizer); return(services); }