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

            return(context);
        }
Пример #2
0
        public static IServiceCollection AddEntityEqualizer(this IServiceCollection services, IEntityEqualizer entityEqualizer)
        {
            GetOrCreateEntityEqualizerContainer(services).Add(entityEqualizer);

            return(services);
        }