Skip to content

Commit

Permalink
Fix the serialization of Feature profile document (OrchardCMS#15465)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored and urbanit committed Mar 18, 2024
1 parent 9bf9cfe commit a0d3745
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
using System.Collections.Generic;
using OrchardCore.Data.Documents;

namespace OrchardCore.BackgroundTasks.Models
namespace OrchardCore.BackgroundTasks.Models;

public class BackgroundTaskDocument : Document
{
public class BackgroundTaskDocument : Document
{
public Dictionary<string, BackgroundTaskSettings> Settings { get; } = new(StringComparer.OrdinalIgnoreCase);
}
public Dictionary<string, BackgroundTaskSettings> Settings { get; init; } = new(StringComparer.OrdinalIgnoreCase);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
using OrchardCore.Data.Documents;
using OrchardCore.Environment.Shell.Models;

namespace OrchardCore.Tenants.Models
namespace OrchardCore.Tenants.Models;

public class FeatureProfilesDocument : Document
{
public class FeatureProfilesDocument : Document
{
public Dictionary<string, FeatureProfile> FeatureProfiles = new(StringComparer.OrdinalIgnoreCase);
}
public Dictionary<string, FeatureProfile> FeatureProfiles { get; init; } = new(StringComparer.OrdinalIgnoreCase);
}

0 comments on commit a0d3745

Please sign in to comment.