Skip to content

Commit 2fa5e25

Browse files
committed
update generated model
1 parent 7e6faa0 commit 2fa5e25

58 files changed

Lines changed: 842 additions & 842 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sample/Tracker/Tracker.Core/Data/Entities/Audit.cs

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -21,114 +21,114 @@ public Audit()
2121

2222
#region Generated Properties
2323
/// <summary>
24-
/// Gets or sets the property value representing column 'Id'.
24+
/// Gets or sets the property value representing column <c>Id</c>.
2525
/// </summary>
2626
/// <value>
27-
/// The property value representing column 'Id'.
27+
/// The property value representing column <c>Id</c>.
2828
/// </value>
29-
[System.ComponentModel.DataAnnotations.Key()]
30-
[System.ComponentModel.DataAnnotations.Schema.Column("Id", TypeName = "UNIQUEIDENTIFIER")]
29+
[Key]
30+
[Column("Id", TypeName = "uniqueidentifier")]
3131
public Guid Id { get; set; }
3232

3333
/// <summary>
34-
/// Gets or sets the property value representing column 'Date'.
34+
/// Gets or sets the property value representing column <c>Date</c>.
3535
/// </summary>
3636
/// <value>
37-
/// The property value representing column 'Date'.
37+
/// The property value representing column <c>Date</c>.
3838
/// </value>
39-
[System.ComponentModel.DataAnnotations.Schema.Column("Date", TypeName = "DATETIME")]
39+
[Column("Date", TypeName = "datetime")]
4040
public DateTime Date { get; set; }
4141

4242
/// <summary>
43-
/// Gets or sets the property value representing column 'UserId'.
43+
/// Gets or sets the property value representing column <c>UserId</c>.
4444
/// </summary>
4545
/// <value>
46-
/// The property value representing column 'UserId'.
46+
/// The property value representing column <c>UserId</c>.
4747
/// </value>
48-
[System.ComponentModel.DataAnnotations.Schema.Column("UserId", TypeName = "UNIQUEIDENTIFIER")]
48+
[Column("UserId", TypeName = "uniqueidentifier")]
4949
public Guid? UserId { get; set; }
5050

5151
/// <summary>
52-
/// Gets or sets the property value representing column 'TaskId'.
52+
/// Gets or sets the property value representing column <c>TaskId</c>.
5353
/// </summary>
5454
/// <value>
55-
/// The property value representing column 'TaskId'.
55+
/// The property value representing column <c>TaskId</c>.
5656
/// </value>
57-
[System.ComponentModel.DataAnnotations.Schema.Column("TaskId", TypeName = "UNIQUEIDENTIFIER")]
57+
[Column("TaskId", TypeName = "uniqueidentifier")]
5858
public Guid? TaskId { get; set; }
5959

6060
/// <summary>
61-
/// Gets or sets the property value representing column 'Content'.
61+
/// Gets or sets the property value representing column <c>Content</c>.
6262
/// </summary>
6363
/// <value>
64-
/// The property value representing column 'Content'.
64+
/// The property value representing column <c>Content</c>.
6565
/// </value>
66-
[System.ComponentModel.DataAnnotations.Schema.Column("Content", TypeName = "NVARCHAR(MAX)")]
66+
[Column("Content", TypeName = "nvarchar(max)")]
6767
public string Content { get; set; } = null!;
6868

6969
/// <summary>
70-
/// Gets or sets the property value representing column 'Username'.
70+
/// Gets or sets the property value representing column <c>Username</c>.
7171
/// </summary>
7272
/// <value>
73-
/// The property value representing column 'Username'.
73+
/// The property value representing column <c>Username</c>.
7474
/// </value>
75-
[System.ComponentModel.DataAnnotations.Schema.Column("Username", TypeName = "NVARCHAR(50)")]
75+
[Column("Username", TypeName = "nvarchar(50)")]
7676
public string Username { get; set; } = null!;
7777

7878
/// <summary>
79-
/// Gets or sets the property value representing column 'Created'.
79+
/// Gets or sets the property value representing column <c>Created</c>.
8080
/// </summary>
8181
/// <value>
82-
/// The property value representing column 'Created'.
82+
/// The property value representing column <c>Created</c>.
8383
/// </value>
84-
[System.ComponentModel.DataAnnotations.Schema.Column("Created", TypeName = "DATETIMEOFFSET")]
84+
[Column("Created", TypeName = "datetimeoffset")]
8585
public DateTimeOffset Created { get; set; }
8686

8787
/// <summary>
88-
/// Gets or sets the property value representing column 'CreatedBy'.
88+
/// Gets or sets the property value representing column <c>CreatedBy</c>.
8989
/// </summary>
9090
/// <value>
91-
/// The property value representing column 'CreatedBy'.
91+
/// The property value representing column <c>CreatedBy</c>.
9292
/// </value>
93-
[System.ComponentModel.DataAnnotations.Schema.Column("CreatedBy", TypeName = "NVARCHAR(100)")]
93+
[Column("CreatedBy", TypeName = "nvarchar(100)")]
9494
public string? CreatedBy { get; set; }
9595

9696
/// <summary>
97-
/// Gets or sets the property value representing column 'Updated'.
97+
/// Gets or sets the property value representing column <c>Updated</c>.
9898
/// </summary>
9999
/// <value>
100-
/// The property value representing column 'Updated'.
100+
/// The property value representing column <c>Updated</c>.
101101
/// </value>
102-
[System.ComponentModel.DataAnnotations.Schema.Column("Updated", TypeName = "DATETIMEOFFSET")]
102+
[Column("Updated", TypeName = "datetimeoffset")]
103103
public DateTimeOffset Updated { get; set; }
104104

105105
/// <summary>
106-
/// Gets or sets the property value representing column 'UpdatedBy'.
106+
/// Gets or sets the property value representing column <c>UpdatedBy</c>.
107107
/// </summary>
108108
/// <value>
109-
/// The property value representing column 'UpdatedBy'.
109+
/// The property value representing column <c>UpdatedBy</c>.
110110
/// </value>
111-
[System.ComponentModel.DataAnnotations.Schema.Column("UpdatedBy", TypeName = "NVARCHAR(100)")]
111+
[Column("UpdatedBy", TypeName = "nvarchar(100)")]
112112
public string? UpdatedBy { get; set; }
113113

114114
/// <summary>
115-
/// Gets or sets the property value representing column 'RowVersion'.
115+
/// Gets or sets the property value representing column <c>RowVersion</c>.
116116
/// </summary>
117117
/// <value>
118-
/// The property value representing column 'RowVersion'.
118+
/// The property value representing column <c>RowVersion</c>.
119119
/// </value>
120-
[System.ComponentModel.DataAnnotations.ConcurrencyCheck()]
121-
[System.ComponentModel.DataAnnotations.Schema.Column("RowVersion", TypeName = "TIMESTAMP")]
122-
[System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)]
120+
[ConcurrencyCheck]
121+
[Column("RowVersion", TypeName = "rowversion")]
122+
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
123123
public byte[] RowVersion { get; set; } = null!;
124124

125125
/// <summary>
126-
/// Gets or sets the property value representing column 'Attributes'.
126+
/// Gets or sets the property value representing column <c>Attributes</c>.
127127
/// </summary>
128128
/// <value>
129-
/// The property value representing column 'Attributes'.
129+
/// The property value representing column <c>Attributes</c>.
130130
/// </value>
131-
[System.ComponentModel.DataAnnotations.Schema.Column("Attributes", TypeName = "StringList")]
131+
[Column("Attributes", TypeName = "StringList")]
132132
public string? Attributes { get; set; }
133133

134134
#endregion

sample/Tracker/Tracker.Core/Data/Entities/Priority.cs

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,96 +23,96 @@ public Priority()
2323

2424
#region Generated Properties
2525
/// <summary>
26-
/// Gets or sets the property value representing column 'Id'.
26+
/// Gets or sets the property value representing column <c>Id</c>.
2727
/// </summary>
2828
/// <value>
29-
/// The property value representing column 'Id'.
29+
/// The property value representing column <c>Id</c>.
3030
/// </value>
31-
[System.ComponentModel.DataAnnotations.Key()]
32-
[System.ComponentModel.DataAnnotations.Schema.Column("Id", TypeName = "UNIQUEIDENTIFIER")]
31+
[Key]
32+
[Column("Id", TypeName = "uniqueidentifier")]
3333
public Guid Id { get; set; }
3434

3535
/// <summary>
36-
/// Gets or sets the property value representing column 'Name'.
36+
/// Gets or sets the property value representing column <c>Name</c>.
3737
/// </summary>
3838
/// <value>
39-
/// The property value representing column 'Name'.
39+
/// The property value representing column <c>Name</c>.
4040
/// </value>
41-
[System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "NVARCHAR(100)")]
41+
[Column("Name", TypeName = "nvarchar(100)")]
4242
public string Name { get; set; } = null!;
4343

4444
/// <summary>
45-
/// Gets or sets the property value representing column 'Description'.
45+
/// Gets or sets the property value representing column <c>Description</c>.
4646
/// </summary>
4747
/// <value>
48-
/// The property value representing column 'Description'.
48+
/// The property value representing column <c>Description</c>.
4949
/// </value>
50-
[System.ComponentModel.DataAnnotations.Schema.Column("Description", TypeName = "NVARCHAR(255)")]
50+
[Column("Description", TypeName = "nvarchar(255)")]
5151
public string? Description { get; set; }
5252

5353
/// <summary>
54-
/// Gets or sets the property value representing column 'DisplayOrder'.
54+
/// Gets or sets the property value representing column <c>DisplayOrder</c>.
5555
/// </summary>
5656
/// <value>
57-
/// The property value representing column 'DisplayOrder'.
57+
/// The property value representing column <c>DisplayOrder</c>.
5858
/// </value>
59-
[System.ComponentModel.DataAnnotations.Schema.Column("DisplayOrder", TypeName = "INT")]
59+
[Column("DisplayOrder", TypeName = "int")]
6060
public int DisplayOrder { get; set; }
6161

6262
/// <summary>
63-
/// Gets or sets the property value representing column 'IsActive'.
63+
/// Gets or sets the property value representing column <c>IsActive</c>.
6464
/// </summary>
6565
/// <value>
66-
/// The property value representing column 'IsActive'.
66+
/// The property value representing column <c>IsActive</c>.
6767
/// </value>
68-
[System.ComponentModel.DataAnnotations.Schema.Column("IsActive", TypeName = "BIT")]
68+
[Column("IsActive", TypeName = "bit")]
6969
public bool IsActive { get; set; }
7070

7171
/// <summary>
72-
/// Gets or sets the property value representing column 'Created'.
72+
/// Gets or sets the property value representing column <c>Created</c>.
7373
/// </summary>
7474
/// <value>
75-
/// The property value representing column 'Created'.
75+
/// The property value representing column <c>Created</c>.
7676
/// </value>
77-
[System.ComponentModel.DataAnnotations.Schema.Column("Created", TypeName = "DATETIMEOFFSET")]
77+
[Column("Created", TypeName = "datetimeoffset")]
7878
public DateTimeOffset Created { get; set; }
7979

8080
/// <summary>
81-
/// Gets or sets the property value representing column 'CreatedBy'.
81+
/// Gets or sets the property value representing column <c>CreatedBy</c>.
8282
/// </summary>
8383
/// <value>
84-
/// The property value representing column 'CreatedBy'.
84+
/// The property value representing column <c>CreatedBy</c>.
8585
/// </value>
86-
[System.ComponentModel.DataAnnotations.Schema.Column("CreatedBy", TypeName = "NVARCHAR(100)")]
86+
[Column("CreatedBy", TypeName = "nvarchar(100)")]
8787
public string? CreatedBy { get; set; }
8888

8989
/// <summary>
90-
/// Gets or sets the property value representing column 'Updated'.
90+
/// Gets or sets the property value representing column <c>Updated</c>.
9191
/// </summary>
9292
/// <value>
93-
/// The property value representing column 'Updated'.
93+
/// The property value representing column <c>Updated</c>.
9494
/// </value>
95-
[System.ComponentModel.DataAnnotations.Schema.Column("Updated", TypeName = "DATETIMEOFFSET")]
95+
[Column("Updated", TypeName = "datetimeoffset")]
9696
public DateTimeOffset Updated { get; set; }
9797

9898
/// <summary>
99-
/// Gets or sets the property value representing column 'UpdatedBy'.
99+
/// Gets or sets the property value representing column <c>UpdatedBy</c>.
100100
/// </summary>
101101
/// <value>
102-
/// The property value representing column 'UpdatedBy'.
102+
/// The property value representing column <c>UpdatedBy</c>.
103103
/// </value>
104-
[System.ComponentModel.DataAnnotations.Schema.Column("UpdatedBy", TypeName = "NVARCHAR(100)")]
104+
[Column("UpdatedBy", TypeName = "nvarchar(100)")]
105105
public string? UpdatedBy { get; set; }
106106

107107
/// <summary>
108-
/// Gets or sets the property value representing column 'RowVersion'.
108+
/// Gets or sets the property value representing column <c>RowVersion</c>.
109109
/// </summary>
110110
/// <value>
111-
/// The property value representing column 'RowVersion'.
111+
/// The property value representing column <c>RowVersion</c>.
112112
/// </value>
113-
[System.ComponentModel.DataAnnotations.ConcurrencyCheck()]
114-
[System.ComponentModel.DataAnnotations.Schema.Column("RowVersion", TypeName = "TIMESTAMP")]
115-
[System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)]
113+
[ConcurrencyCheck]
114+
[Column("RowVersion", TypeName = "rowversion")]
115+
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
116116
public byte[] RowVersion { get; set; } = null!;
117117

118118
#endregion

sample/Tracker/Tracker.Core/Data/Entities/Role.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,78 +22,78 @@ public Role()
2222

2323
#region Generated Properties
2424
/// <summary>
25-
/// Gets or sets the property value representing column 'Id'.
25+
/// Gets or sets the property value representing column <c>Id</c>.
2626
/// </summary>
2727
/// <value>
28-
/// The property value representing column 'Id'.
28+
/// The property value representing column <c>Id</c>.
2929
/// </value>
30-
[System.ComponentModel.DataAnnotations.Key()]
31-
[System.ComponentModel.DataAnnotations.Schema.Column("Id", TypeName = "UNIQUEIDENTIFIER")]
30+
[Key]
31+
[Column("Id", TypeName = "uniqueidentifier")]
3232
public Guid Id { get; set; }
3333

3434
/// <summary>
35-
/// Gets or sets the property value representing column 'Name'.
35+
/// Gets or sets the property value representing column <c>Name</c>.
3636
/// </summary>
3737
/// <value>
38-
/// The property value representing column 'Name'.
38+
/// The property value representing column <c>Name</c>.
3939
/// </value>
40-
[System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "NVARCHAR(256)")]
40+
[Column("Name", TypeName = "nvarchar(256)")]
4141
public string Name { get; set; } = null!;
4242

4343
/// <summary>
44-
/// Gets or sets the property value representing column 'Description'.
44+
/// Gets or sets the property value representing column <c>Description</c>.
4545
/// </summary>
4646
/// <value>
47-
/// The property value representing column 'Description'.
47+
/// The property value representing column <c>Description</c>.
4848
/// </value>
49-
[System.ComponentModel.DataAnnotations.Schema.Column("Description", TypeName = "NVARCHAR(MAX)")]
49+
[Column("Description", TypeName = "nvarchar(max)")]
5050
public string? Description { get; set; }
5151

5252
/// <summary>
53-
/// Gets or sets the property value representing column 'Created'.
53+
/// Gets or sets the property value representing column <c>Created</c>.
5454
/// </summary>
5555
/// <value>
56-
/// The property value representing column 'Created'.
56+
/// The property value representing column <c>Created</c>.
5757
/// </value>
58-
[System.ComponentModel.DataAnnotations.Schema.Column("Created", TypeName = "DATETIMEOFFSET")]
58+
[Column("Created", TypeName = "datetimeoffset")]
5959
public DateTimeOffset Created { get; set; }
6060

6161
/// <summary>
62-
/// Gets or sets the property value representing column 'CreatedBy'.
62+
/// Gets or sets the property value representing column <c>CreatedBy</c>.
6363
/// </summary>
6464
/// <value>
65-
/// The property value representing column 'CreatedBy'.
65+
/// The property value representing column <c>CreatedBy</c>.
6666
/// </value>
67-
[System.ComponentModel.DataAnnotations.Schema.Column("CreatedBy", TypeName = "NVARCHAR(100)")]
67+
[Column("CreatedBy", TypeName = "nvarchar(100)")]
6868
public string? CreatedBy { get; set; }
6969

7070
/// <summary>
71-
/// Gets or sets the property value representing column 'Updated'.
71+
/// Gets or sets the property value representing column <c>Updated</c>.
7272
/// </summary>
7373
/// <value>
74-
/// The property value representing column 'Updated'.
74+
/// The property value representing column <c>Updated</c>.
7575
/// </value>
76-
[System.ComponentModel.DataAnnotations.Schema.Column("Updated", TypeName = "DATETIMEOFFSET")]
76+
[Column("Updated", TypeName = "datetimeoffset")]
7777
public DateTimeOffset Updated { get; set; }
7878

7979
/// <summary>
80-
/// Gets or sets the property value representing column 'UpdatedBy'.
80+
/// Gets or sets the property value representing column <c>UpdatedBy</c>.
8181
/// </summary>
8282
/// <value>
83-
/// The property value representing column 'UpdatedBy'.
83+
/// The property value representing column <c>UpdatedBy</c>.
8484
/// </value>
85-
[System.ComponentModel.DataAnnotations.Schema.Column("UpdatedBy", TypeName = "NVARCHAR(100)")]
85+
[Column("UpdatedBy", TypeName = "nvarchar(100)")]
8686
public string? UpdatedBy { get; set; }
8787

8888
/// <summary>
89-
/// Gets or sets the property value representing column 'RowVersion'.
89+
/// Gets or sets the property value representing column <c>RowVersion</c>.
9090
/// </summary>
9191
/// <value>
92-
/// The property value representing column 'RowVersion'.
92+
/// The property value representing column <c>RowVersion</c>.
9393
/// </value>
94-
[System.ComponentModel.DataAnnotations.ConcurrencyCheck()]
95-
[System.ComponentModel.DataAnnotations.Schema.Column("RowVersion", TypeName = "TIMESTAMP")]
96-
[System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)]
94+
[ConcurrencyCheck]
95+
[Column("RowVersion", TypeName = "rowversion")]
96+
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
9797
public byte[] RowVersion { get; set; } = null!;
9898

9999
#endregion

0 commit comments

Comments
 (0)