File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
src/Application/src/RazorPagesTestSample/Data Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
-
3
1
namespace RazorPagesTestSample . Data
4
2
{
5
3
#region snippet1
4
+ /// <summary>
5
+ /// Represents a message entity with a maximum length of 250 characters.
6
+ /// </summary>
6
7
public class Message
7
8
{
9
+ /// <summary>
10
+ /// Gets or sets the unique identifier for the message.
11
+ /// </summary>
8
12
public int Id { get ; set ; }
9
13
14
+ /// <summary>
15
+ /// Gets or sets the text of the message.
16
+ /// The text is required and has a maximum length of 250 characters.
17
+ /// </summary>
10
18
[ Required ]
11
19
[ DataType ( DataType . Text ) ]
12
- [ StringLength ( 200 , ErrorMessage = "There's a 200 character limit on messages. Please shorten your message." ) ]
20
+ [ StringLength ( 250 , ErrorMessage = "There's a 250 character limit on messages. Please shorten your message." ) ]
13
21
public string Text { get ; set ; }
14
22
}
15
23
#endregion
16
- }
24
+ }
You can’t perform that action at this time.
0 commit comments