0
adudley created
When I'm making calls to a respository from a background job, the tenantId is always null. I've tried including the tenantId in the where clause
e.g. _roleRepository.GetAll().Where(r => r.TenantId == args.TenantId);
My understanding though, is that this where is considered after abp has already filtered the data on the tenantId. Therefore, it will never find anything as all the data it's searching will have a tenantId of null.
Is there a way I can set the tenantId the repositories are using within the background job class itself?
Thanks in advance.