MaxTitleLength constant is now Pascal case

This commit is contained in:
Andrea Piovanelli 2024-01-19 15:33:13 +01:00
parent 65a90d5b46
commit 05511a877c
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ namespace Orchard.Core.Title {
SchemaBuilder.CreateTable("TitlePartRecord",
table => table
.ContentPartVersionRecord()
.Column<string>("Title", column => column.WithLength(TitlePartSettings.MAX_TITLE_LENGTH))
.Column<string>("Title", column => column.WithLength(TitlePartSettings.MaxTitleLength))
);
ContentDefinitionManager.AlterPartDefinition("TitlePart", builder => builder

View File

@ -10,8 +10,8 @@ namespace Orchard.Core.Title.Settings {
public class TitlePartSettings {
// Whenever this constant is changed a new migration step must be created to update the length of the field on the DB
public const int MAX_TITLE_LENGTH = 1024;
[Range(0, MAX_TITLE_LENGTH)]
public const int MaxTitleLength = 1024;
[Range(0, MaxTitleLength)]
[DisplayName("Maximum Length")]
public int MaxLength {get; set;}