0
shedspotter created
Hi,
I need to create calculated property on core project (domain layer classes) i need to add current user & current tanent id with db value.
but i cant get current login user details could you please suggest me any changes.
Thanks in advance.
3 Answer(s)
-
0
Hi @shedspotter,
You can create a domain service and inject IAbpSession into your domain service and return your entity by setting related fields using this domain service.
Also, you must only allow cretion of your entity using this domain service.
-
0
For working with IAbpSession please refer to this :
-
0
Thanks for solution