Skip to content

Commit

Permalink
Set SettingDefinition's Providers from SettingDefinitionRecord.
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming committed Aug 25, 2024
1 parent ac0f5b7 commit 4b2fa2e
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 4b2fa2e

Please sign in to comment.