Activities of "shingolin"

I try to use background job to excute some domain service about create / update And data is succeed to create / update to database But, I found that the record without CreatorId / LastModifiierId After debug I'm understand it because without currentuser via backgroud job So I try to manually set to entity It work for create ,but fail in update It will be set to null when currentuser id have no value

Is these any other solution for me?

  • ABP Framework version: v7.1.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
public class AttendEmployeeRoteScheduleBackgroundJob : AsyncBackgroundJob<AttendEmployeeRoteScheduleGenerateConditionDto>, ITransientDependency
{
    private readonly AttendEmployeeRoteScheduleDomainService attendEmployeeRoteSchedulesAppService;
    
    public AttendEmployeeRoteScheduleBackgroundJob(AttendEmployeeRoteScheduleDomainService attendEmployeeRoteSchedulesAppService)
    {
    this.attendEmployeeRoteSchedulesAppService = attendEmployeeRoteSchedulesAppService;
    }
    
    public override Task ExecuteAsync(AttendEmployeeRoteScheduleGenerateConditionDto args)
    {
    return attendEmployeeRoteSchedulesAppService.GenerateAsync(args);
    }
}

I met a same issue when I update my project from 6.02 to 7.03 Finnally,I create a new abp7 solution and compare with my updated project I found some different like this After compare and change all project refference Issue has been resolved

Showing 1 to 2 of 2 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11