Activities of "maliming"

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.

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.

Showing 7121 to 7130 of 7742 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 23, 2024, 13:33