Activities of "maliming"

hi

The containerWidth does not support configuration at this time. I will create an internal issue.

Thanks.

hi

You can send an email to liming.ma@volosoft.com

I will share the Zoom link. Please share your screen.

Thanks.

hi

Can you also override the EfCoreIdentityUserRepository?

The main problem is that user has too many organizations. then .Include(x => x.OrganizationUnits) will take long time.

using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Identity;
using Volo.Abp.Identity.EntityFrameworkCore;

namespace TestUsersLoad.EntityFrameworkCore;

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(EfCoreIdentityUserRepository), typeof(IIdentityUserRepository))]
public class MyEfCoreIdentityUserRepository : EfCoreIdentityUserRepository
{
    public MyEfCoreIdentityUserRepository(IDbContextProvider<IIdentityDbContext> dbContextProvider) : base(dbContextProvider)
    {
    }

    public override async Task<IdentityUser?> FindByNormalizedUserNameAsync(
        string normalizedUserName,
        bool includeDetails = true,
        CancellationToken cancellationToken = default)
    {
        return await (MyIncludeDetails(await GetDbSetAsync(), includeDetails))
            .OrderBy(x => x.Id)
            .FirstOrDefaultAsync(
                u => u.NormalizedUserName == normalizedUserName,
                GetCancellationToken(cancellationToken)
            );
    }

    private static IQueryable<IdentityUser> MyIncludeDetails(IQueryable<IdentityUser> queryable, bool include = true)
    {
        if (!include)
        {
            return queryable;
        }

        return queryable
            .Include(x => x.Roles)
            .Include(x => x.Logins)
            .Include(x => x.Claims)
            .Include(x => x.Tokens);
        //.Include(x => x.OrganizationUnits);
    }
}

hi

Can you try this?

public override void ConfigureServices(ServiceConfigurationContext context)
{
    Configure<AbpEntityOptions>(options =>
    {
        options.Entity<IdentityUser>(identityUserOptions =>
        {
            identityUserOptions.DefaultWithDetailsFunc = queryable =>
            {
                return queryable
                    .Include(x => x.Roles)
                    .Include(x => x.Logins)
                    .Include(x => x.Claims)
                    .Include(x => x.Tokens);
                //.Include(x => x.OrganizationUnits);
            };
        });
    });
}

hi

Your app is single-page; it shouldn't reload the page when navigation changes.

You can add a button to your page PageHeader area to force a reload of the current page.

Thanks.

Thanks. I will download and check it.

👍

hi

I am still unable to reproduce the problem.

Can you share such a project?

Thanks.

hi

I mean, can you add some code to insert organizations to show the problem?

Thanks.

hi

The SQL script doesn't reproduce the problem.

Can you try to add your test organizations by code?

Thanks.

hi

Can you share some code to seed organzation data? Then reproduce it?

Thanks.

Showing 741 to 750 of 11567 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.