Skip to content

Commit ed51031

Browse files
author
Frederic Wickert
committed
resolves #3
1 parent bf50197 commit ed51031

File tree

1 file changed

+11
-1
lines changed
  • src/Application/src/RazorPagesTestSample/Data

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,19 @@ public class Message
77
{
88
public int Id { get; set; }
99

10+
/// <summary>
11+
/// Gets or sets the text of the message.
12+
/// </summary>
13+
/// <value>
14+
/// The text content of the message, limited to 250 characters.
15+
/// </value>
16+
/// <remarks>
17+
/// This property is required and must be a text data type. If the text exceeds 250 characters,
18+
/// an error message will be displayed indicating the character limit.
19+
/// </remarks>
1020
[Required]
1121
[DataType(DataType.Text)]
12-
[StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")]
22+
[StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")]
1323
public string Text { get; set; }
1424
}
1525
#endregion

0 commit comments

Comments
 (0)