0
fawad29 created
We have an entity which inherits from IMustHaveTenant. We want to assign tenant id from the session using AbpSession.GetTenantId() when a tenant user creates this entity, can you please confirm the best place to assign tenant id? Should this be done in the Create function of the EntityAppService?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
can you please confirm the best place to assign tenant id? Should this be done in the Create function of the EntityAppService?
You should set the TenantId value when you create the entity object. Because the TenantId may change when SaveChange is called.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
This issue is closed because it has not had recent activity for a long time.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)