I don't know your specific business. As I said above, if you want to get the tenant's settings you need to find a way to get TenantId.
The problem now is that this requires the correct tenant ID (because you need to get the settings for this tenant), can you get the tenant ID via device unlock requests?
Then call using (_unitOfWorkManager.Current.SetTenantId(YourTenantId))
What is the function of the SendDeviceUnlockNotification
method? Is it a notification to all tenants?
Please share your code (including AppSettingProvider)
Try creating an empty database first, then try to execute Update-Database
.
Yes, the background job has no session information. You can pass TenantId to the background job and then set the TenantId of the current session (also for userid)
see: https://aspnetboilerplate.com/Pages/Documents/Abp-Session#overriding-current-session-values
You can inject the session and see. I guess there is no tenant id currently, so you got the wrong return value.
Is MyConstants.DealerNo
setting related to tenants and users?
I downlaoded the ASP.NET MVC & Jquery demo Project.
What is the specific version?
Is there any difference between Demo and Real project?
No difference in code
https://aspnetboilerplate.com/Pages/Documents/Articles\How-To\add-custom-data-filter-ef-core You can refer to this article to see if it can't be solved, please share some code that can reproduce the problem.