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