File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/Application/src/RazorPagesTestSample/Data Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,21 @@ public class Message
7
7
{
8
8
public int Id { get ; set ; }
9
9
10
- [ Required ]
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
+ /// The text must be a valid string and is required. If the text exceeds 250 characters, an error message will be displayed.
18
+ /// </remarks>
19
+ /// <exception cref="ValidationException">
20
+ /// Thrown when the text exceeds 250 characters or is not provided.
21
+ /// </exception>
22
+ /// /// /// /// /// /// /// /// /// /// /// /// [Required]
11
23
[ DataType ( DataType . Text ) ]
12
- [ StringLength ( 200 , ErrorMessage = "There's a 200 character limit on messages. Please shorten your message." ) ]
24
+ [ StringLength ( 250 , ErrorMessage = "There's a 200 character limit on messages. Please shorten your message." ) ]
13
25
public string Text { get ; set ; }
14
26
}
15
27
#endregion
You can’t perform that action at this time.
0 commit comments