Activities of "liangshiwei"

Hi,

Update connection string to mongodb://localhost:27017/ZW_Administration

Answer

HI,

I can't reproduce the problem, Could you use abp suite to create a new project to reproduce the problem? share the project via email: shiwei.liang@volosoft.com

Answer

Hi,

I think it can help you : https://github.com/abpframework/abp/tree/dev/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/FullSearch

Hi,

You can't directly inject the DBContext. Because the context instance is controlled by the unit of work system.

So, recommended way is :

var masterDbContext = (Integr8MasterDbContext) await _customerRepository.GetDbContextAsync();
Answer

Hi,

You just need to use IRepository to get users.

Example:

public class UserAppService : ApplicationService, IUserAppService
{
    private readonly IRepository<AppUser, Guid> _appUserRepository;
    
    public UserAppService(IRepository<AppUser, Guid> appUserRepository)
    {
        appUserRepository = _appUserRepository;
    }
    
    public async Task<List<AppUserDto>> GetUserList()
    {
        return ObjectMapper.Map<AppUser,AppUserDto>(await _appUserRepository.GetListAsync());
    }
}
public partial class Index
{
    [Inject]
    protected IUserAppService UserAppService { get; set; }

    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        var users = await UserAppService.GetUserList();
        await base.OnAfterRenderAsync(firstRender);
    }
}

Display a loading indicator so the user knows something is actually happening.

See https://www.meziantou.net/showing-a-loading-screen-while-initializing-a-blazor-application.htm

Go straight to the Login page. Having to do a redirect from another page we don't want just to get to the login is crazy, and adds moire user frustration.

We are trying to impove performance of blazor app. Currently you can consider use blazor server version.

@abpVAndy

See https://docs.abp.io/en/abp/latest/UI/Angular/Custom-Setting-Page

Answer

This is not related to Csrf, I think your application config is not correct

See my comment:

I would like to go straightaway to the Login page and avoid that visual effect rendering Index page and then Login page, is that possible?

You cannot do this in the blazor front end, because in blazor applications, a refresh will reload the application(it will be slow). This solution should work: https://support.abp.io/QA/Questions/1152#answer-d2e834e0-4600-d3d0-eb47-39fbdb7edfc7

I would like to go straightaway to the Login page and avoid that visual effect rendering Index page and then Login page, is that possible?

You cannot do this in the blazor front end, because in blazor applications, a refresh will reload the application(it will be slow). This solution should work: https://support.abp.io/QA/Questions/1152#answer-d2e834e0-4600-d3d0-eb47-39fbdb7edfc7

And:

Showing 5881 to 5890 of 6692 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.0.0-preview. Updated on September 16, 2025, 10:35