Activities of "maliming"

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
        );
    }
}

hi

Maybe your database has a problem. I have tested it, and it works.

Noted on that. As I still need some filtering by TenantId, A possible workaround for me is to add TenantId without implementing IMultiTenant.

You can override the ef core filter method. https://abp.io/docs/latest/framework/infrastructure/data-filtering?_redirected=B8ABF606AA1BDF5C629883DF1061649A#entityframework-core

Is there any way to automatically populate this TenantId field with the CurrentTenant?

The entity's TenantId has nothing to do with ICurrentTenant

ICurrentTenant value coming from claims.

ok, I will do some checks and reply to you soon.

Thanks

ok, I will add an id to the logout element.

hi

If your entity has implemented the IMultiTenant there is no way to achieve this.

hi vd

Can you create a new question? Our angular team will reply to you. THanks

Showing 2781 to 2790 of 10654 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