Activities of "maliming"

hi

Can you try the following solution:

  1. Remove public IFormFile[]? Files { get; set; } and test again.
  2. Use IRemoteStreamContent to replace the IFromFile and test again. https://abp.io/docs/latest/framework/architecture/domain-driven-design/application-services#working-with-streams

Thanks

Sorry about that. : )

No problem, we offer a trial to let you evaluate everything before paying.

hi

You can upload your project to GitHub (private repo), I can help to remove the openiddict module. Please invite me to your repo. https://github.com/maliming

hi

So are you saying that ABP Studio will eventually be improved so I can create project in first place without these modules included?

Yes.

but now you can only manually remove modules you don't need.

Answer

hi

How can we enforce that other users are blocked from accessing this method while the admin’s transaction is still in progress, ensuring that only one user can execute this Unit of Work at a time?

I think your problem has nothing to do with UOW. You can try to use locks/distributed locks to ensure that admin access is exclusive.

hi

This error is related to IIS and your ASP NET Core environment.

You can enable and check the stdoutLog or see the application logs in Windows Event Viewer.

https://learn.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-8.0#troubleshoot-on-iis https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/logging-and-diagnostics?view=aspnetcore-8.0

hi

Can you use this class to test your connection strings?

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.EntityFrameworkCore.SqlServer/Volo/Abp/EntityFrameworkCore/ConnectionStrings/SqlServerConnectionStringChecker.cs#L10

Test button also use it to check the connection string.

Good news 👍

hi

The tenantid set in the base class.

You can call the YouEntityHelper.TrySetTenantId(this);

This breaks the framework design and may cause uncertainty in related functions.


public abstract class Entity : IEntity
{
    protected Entity()
    {
        EntityHelper.TrySetTenantId(this);
    }
}

public static class YourEntityHelper
{
    public static void TrySetTenantId(IEntity entity)
    {
        //if (entity is not IMultiTenant multiTenantEntity)
        //{
        //    return;
        //}

       //make sure entity is contains `TenantIdCustom`

        var tenantId = AsyncLocalCurrentTenantAccessor.Instance.Current?.TenantId;
        if (tenantId == multiTenantEntity.TenantIdCustom)
        {
            return;
        }

        ObjectHelper.TrySetProperty(
            multiTenantEntity,
            x => x.TenantIdCustom,
            () => tenantId
        );
    }
}
Showing 571 to 580 of 8450 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11