Skip to content

Commit 645d40d

Browse files
committed
2 parents 3490abe + 4f1ee83 commit 645d40d

File tree

1 file changed

+8
-2
lines changed
  • src/Application/src/RazorPagesTestSample/Data

1 file changed

+8
-2
lines changed

src/Application/src/RazorPagesTestSample/Data/Message.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ public class Message
77
{
88
public int Id { get; set; }
99

10-
[Required]
10+
/// <summary>
11+
/// Gets or sets the text of the message.
12+
/// </summary>
13+
/// <remarks>
14+
/// The text should be a string with a maximum length of 250 characters.
15+
/// </remarks>
16+
[Required] /// [Required]
1117
[DataType(DataType.Text)]
12-
[StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")]
18+
[StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")]
1319
public string Text { get; set; }
1420
}
1521
#endregion

0 commit comments

Comments
 (0)