Hi,
I have a requirement to apply user settings to the admin user created in TenantManager.CreateWithAdminUserAsync.
I am finding, however, that calls to SettingManager.ChangeSettingForUserAsync are not applying the settings (no error received from the call).
I have tried applying the settings in a new UOW, but still no good.
Please advise.
2 Answer(s)
-
0
1- Changing a current user's settings needs cache invalidation. But i don't think you need to clear cache. Because you are creating a new user who's not logged on.
2- The framework works like this; if a setting's default value is same as new value no database operations will be done. If you change a setting to a default value so you cannot see a record in database. If you change setting rather then the default value and you don't see it in AbpSettings table; share the related full code.
-
0
All is good. I didn't realise that default values were not persisted.