Skip to content

Commit

Permalink
Merge pull request #20614 from abpframework/DynamicSettingDefinitionS…
Browse files Browse the repository at this point in the history
…toreInMemoryCache

Set `SettingDefinition's Providers` from `SettingDefinitionRecord`.
  • Loading branch information
EngincanV authored Aug 26, 2024
2 parents ea2ec70 + 4b2fa2e commit 0c7b5cf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public Task FillAsync(List<SettingDefinitionRecord> settingRecords)
record.IsInherited,
record.IsEncrypted);

if (!record.Providers.IsNullOrWhiteSpace())
{
settingDefinition.Providers.AddRange(record.Providers.Split(','));
}

foreach (var property in record.ExtraProperties)
{
settingDefinition.WithProperty(property.Key, property.Value);
Expand Down

0 comments on commit 0c7b5cf

Please sign in to comment.