public static IServiceCollection AddTreeRepository(
            this IServiceCollection services, Type dbContextType)
        {
            var options = new AbpTreesRepositoryRegistrationOptions(dbContextType, services);

            new EfCoreTreeRepositoryRegistrar(options).AddRepositories();

            return(services);
        }
        public static IServiceCollection AddTreeRepository <TDbContext>(
            this IServiceCollection services)
            where TDbContext : AbpDbContext <TDbContext>
        {
            var options = new AbpTreesRepositoryRegistrationOptions(typeof(TDbContext), services);

            //TODO: Custom option action
            //optionsBuilder?.Invoke(options);

            new EfCoreTreeRepositoryRegistrar(options).AddRepositories();

            return(services);
        }