We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3490abe + 4f1ee83 commit 645d40dCopy full SHA for 645d40d
src/Application/src/RazorPagesTestSample/Data/Message.cs
@@ -7,9 +7,15 @@ public class Message
7
{
8
public int Id { get; set; }
9
10
- [Required]
+ /// <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]
17
[DataType(DataType.Text)]
- [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.")]
19
public string Text { get; set; }
20
}
21
#endregion
0 commit comments