Hi,
We want to add new entry with BackgroundJob. We can achieve to change CurrentTenant and we add tenantId of entry to database. But, we can't set CreatorId to database with repository insert operation. Is there a solution to use for the current user like CurrentTenant.Change ? Thank you,
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:
ABP Framework version: v7.3.1
UI Type: / MVC /
Database System: SQL Server,
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Exception message and full stack trace:
Steps to reproduce the issue:
2 Answer(s)
-
0
hi
You can set the
CreatorId
of theentity
byObjectHelper.TrySetProperty(entity, x => x.CreatorId, () => YourID);
. -
0