打开 关闭

Current User/Tenant is not set. #3278


User avatar
0
alirizaadiyahsi 创建
  • ABP Framework version: v5.3.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Microservice

I have following two entities:

public class FunctionalPosition : FullAuditedAggregateRoot<Guid>, IMultiTenant and public class AccessRequest : FullAuditedEntity<Guid>, IMultiTenant

DomainService for FunctionalPosition

DomainService for AccessRequest

FunctionalPosition Table

AccessRequest Table

FunctionalPosition and AccessRequest are in the same microservice and DB, but there is wrong with AccessRequest to set user and tenant. Also I am checking by debugging both client and server has the current tenant/user information. Am I missing something?


2 答案
  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    Is the TenantId property of your entity has the set method?

    public Guid? TenantId { get; private set; }

    https://github.com/abpframework/abp/pull/10490/files

  • User Avatar
    0
    alirizaadiyahsi 创建

    Hi @maliming another silly mistake :) I did not check after Rider created auto-generated code.

    Thanks.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11