Skip to content

Commit 46c751a

Browse files
author
System Administrator
committed
Resolves #7
1 parent 8b62bf6 commit 46c751a

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ 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+
/// <remarks>
14+
/// This property is required and should contain text data.
15+
/// The maximum length of the text is 250 characters.
16+
/// </remarks>
1017
[Required]
1118
[DataType(DataType.Text)]
12-
[StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")]
19+
[StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")]
1320
public string Text { get; set; }
1421
}
1522
#endregion

0 commit comments

Comments
 (0)