Activities of "maliming"

hi

You can try to create a new taghelper and make it executed first.

https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpIdNameTagHelper.cs#L18

hi

Get token with tenant admin and make request to the Export method and get 200 result code ( this must be 403 but returns 200)

Can you check your token claims on https://jwt.io/ ?

hi

You can create a new project then check the code of XXXDbMigrationService

hi

It seems the Swashbuckle.AspNetCore do some change for IIS virtual directory, Can you try to upgrade and re-try?

https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1953 https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1392#issuecomment-697348303

Answer

hi

abphelper cli has a feature that we can run CRU based on a c# model class

Can you share the details of this feature?

hi

Can you share the source code of your XXXDbMigrationService ?

It should contain such code like below.

foreach (var tenant in tenants)
{
    using (_currentTenant.Change(tenant.Id))
    {
        await SeedDataAsync(tenant);
    }
}
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.

Showing 10481 to 10490 of 11101 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
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 November 07, 2025, 08:20