Activities of "maliming"

Answer

hi

Please check PostGreController in FD.Demo.MicroService.Host project. We are trying to access appuserRepository for specific tenant but without any luck.

You can use CurrentTenant.Change to switch host and tenant.

[ApiController]
public class PostGreController : AbpController
{

    private readonly IAppUsers _appuserRepository;
    private readonly IDbContextProvider<DemoDbContext> _dbContextProvider;

    public PostGreController(IAppUsers appuserRepository, IDbContextProvider<DemoDbContext> dbContextProvider)
    {
        _appuserRepository = appuserRepository;
        _dbContextProvider = dbContextProvider;
    }


    [Route("/api/v1/test")]
    [HttpGet]
    [ProducesResponseType((int)HttpStatusCode.Accepted)]
    public async Task<IActionResult> test()
    {
        using (CurrentTenant.Change(null))
        {
            var abcInHostDatabase = await _appuserRepository.GetListAsync();
        }

        var ten1 = new Guid("your tenant id to switch tenant");
        using (CurrentTenant.Change(ten1))
        {
            var abcInTenantDatabase = await _appuserRepository.GetListAsync();
        }


        var demoDbContext = await _dbContextProvider.GetDbContextAsync();

        return Ok();
    }
}

Our general issue is, how to access DemoDBContext from FD.Demo.Microservice.Host project.

Reference FD.Demo.EntityFrameworkCore.csproj in your FD.Demo.Microservice.Host project.

var demoDbContext = await _dbContextProvider.GetDbContextAsync();

hi Let's discuss at https://support.abp.io/QA/Questions/1220#answer-f5948184-088a-d6ea-fb84-39fc291d3f8c

hi

Dear team, is there a faster way to run DBMigrator on 1000+ Tenants ?

You can try to execute the migration concurrently, such as creating multiple threads to execute the migration separately.

Is there a way to keep the system running while migration is running ?

This is similar to system running when changing the database, which may be difficult or impossible.

can i migrate them back to a single database ?

You can back to use the Host database by deleting the tenant's connection string.

hi

To download the source-code of the Lepton Theme use the following CLI command

abp get-source Volo.LeptonTheme

The remaining steps should be similar to the article.

hi

Can you share the steps and code to repro your problem?

hi

Can you share the steps and code to repro your problem?

hi Jurjen

There is a Authentication.razor in lepton theme module. We are replacing it.

You can't use it in index page. It must be in the Page folder like the screen that I shared.

hi

You can create a WebAssemblyCurrentTenantAccessor class to fix this.

https://github.com/abpframework/abp/pull/8842

hi davidc

It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379

You need set up the Redis for the Public website.

where do i get this event as we are using abp Identity module for uer creation/updation

You can consider override these sevices,They are creating/updating users and user profiles.

IdentityUserAppService and ProfileAppService

https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services

Also there is requirment that Suppler Admin Role e.g Samsung Supplier admin should be see only samsung organization users. we created "Samsung" ABP organization unit and added Suppler Admin Role and User to it. But we logged in with Supplier admin, he is able to see all user and not just sumsung user. let me know how to achive this or filter this in ABP identity module. See hierarchy Anchor Admin >> Supplier Admin >> Supplier User Here Supplier Admin should be able to View/Add/Update users of his organization. Also, can we filter users based on claims ?

The default module does not provide these functions, you need to implement it yourself, like my reply above, override the default service, and customize your business logic

Showing 10031 to 10040 of 10645 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 12, 2025, 10:20