forked from OrchardCMS/OrchardCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix case insensitive dictionary problem (Lombiq Technologies: OCORE-1…
…97) (OrchardCMS#16623)
- Loading branch information
1 parent
e23ab9e
commit 5278abf
Showing
10 changed files
with
39 additions
and
52 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
src/OrchardCore.Modules/OrchardCore.Media/Models/MediaProfilesDocument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
using OrchardCore.Data.Documents; | ||
using Format = OrchardCore.Media.Processing.Format; | ||
using ResizeMode = OrchardCore.Media.Processing.ResizeMode; | ||
|
||
namespace OrchardCore.Media.Models; | ||
|
||
public class MediaProfilesDocument : Document | ||
{ | ||
public Dictionary<string, MediaProfile> MediaProfiles { get; init; } = new Dictionary<string, MediaProfile>(StringComparer.OrdinalIgnoreCase); | ||
public Dictionary<string, MediaProfile> MediaProfiles { get; init; } = new(StringComparer.OrdinalIgnoreCase); | ||
} | ||
|
||
public class MediaProfile | ||
{ | ||
public string Hint { get; set; } | ||
public int Width { get; set; } | ||
public int Height { get; set; } | ||
public Processing.ResizeMode Mode { get; set; } | ||
public Processing.Format Format { get; set; } | ||
public ResizeMode Mode { get; set; } | ||
public Format Format { get; set; } | ||
public int Quality { get; set; } | ||
public string BackgroundColor { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters