0
peter.arrivex created
- ABP Framework version: v7.4.2
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
I have written the Global Query Filter for filtering the entities by the WorkingYear saved in the userSettings. It is working fine at first place but when I update the WorkingYear from UserSettings then this filter is not updating accordingly. It still filter the record by earlier value of WorkingYear. Please help me out to update the Global Query Filter. Thanks.
1 Answer(s)
-
0
hi
int season = Convert.ToInt32(_settingProvider GetOrNullAsync("ATS.WorkingYear").Result);
Please make
season
like aIsWorkingYearFilterEnabled
variable instead of a local variable.