Implement a feature to Activate/Deactivate employee from two Entities : User Profile and User Status in ABP Framework
07:21 10 Dec 2025

I have to implement a feature to Activate/ Deactivate employee from two Entities : UserProfile and UserStatus in Domain Layer of ABP Application. I want to know the field where I can implement the feature. The code for UserProfile.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace IntranetPortal.AppEntities.UserProfiles
{
    public class UserProfile : FullAuditedAggregateRoot
    {
        public Guid AbpUserId { get; set; }
        public string MiddleName { get; set; }
        public Guid? DesignationId { get; set; }
        public Guid? DepartmentId { get; set; }
        public string ProfilePictureUrl { get; set; }
        public DateTime DateOfBirth { get; set; }
        public DateTime HiredDate { get; set; }
        public string ReferenceId { get; set; }
        public Guid UserStatusId { get; set; }
    }
}

The code for 'UserStatus.cs':

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace IntranetPortal.AppEntities.UserProfiles
{
public class UserStatus : FullAuditedAggregateRoot\
{
public string SystemName { get; set; }
public string DisplayName { get; set; }

    }

}

What is the recommended way to store the activate/deactivate state for an employee in ABP without changing existing entities?

c# entity-framework-core domain-driven-design abp-framework