File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/Application/src/RazorPagesTestSample/Data Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,18 @@ public class Message
7
7
{
8
8
public int Id { get ; set ; }
9
9
10
+ /// <summary>
11
+ /// Gets or sets the message text.
12
+ /// </summary>
13
+ /// <value>
14
+ /// The message text, which is required and must be a string with a maximum length of 250 characters.
15
+ /// </value>
16
+ /// <exception cref="ValidationException">
17
+ /// Thrown when the text exceeds the 200 character limit.
18
+ /// </exception>
10
19
[ Required ]
11
20
[ DataType ( DataType . Text ) ]
12
- [ StringLength ( 200 , ErrorMessage = "There's a 200 character limit on messages. Please shorten your message." ) ]
21
+ [ StringLength ( 200 , ErrorMessage = "There's a 250 character limit on messages. Please shorten your message." ) ]
13
22
public string Text { get ; set ; }
14
23
}
15
24
#endregion
You can’t perform that action at this time.
0 commit comments