diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-19 21:37:15 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-19 21:37:15 +0800 |
commit | 7bcf891d9d68ac0f12570b94938347ab8eec3247 (patch) | |
tree | e6168234660307247111ee369a0b2123823614eb /Timeline/Entities/DatabaseContext.cs | |
parent | a268999b8c975588c01b345829edfc0099af6f93 (diff) | |
download | timeline-7bcf891d9d68ac0f12570b94938347ab8eec3247.tar.gz timeline-7bcf891d9d68ac0f12570b94938347ab8eec3247.tar.bz2 timeline-7bcf891d9d68ac0f12570b94938347ab8eec3247.zip |
...
Diffstat (limited to 'Timeline/Entities/DatabaseContext.cs')
-rw-r--r-- | Timeline/Entities/DatabaseContext.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Timeline/Entities/DatabaseContext.cs b/Timeline/Entities/DatabaseContext.cs index d9815660..550db216 100644 --- a/Timeline/Entities/DatabaseContext.cs +++ b/Timeline/Entities/DatabaseContext.cs @@ -17,20 +17,20 @@ namespace Timeline.Entities public long Id { get; set; }
[Column("name"), MaxLength(26), Required]
- public string Name { get; set; }
+ public string Name { get; set; } = default!;
[Column("password"), Required]
- public string EncryptedPassword { get; set; }
+ public string EncryptedPassword { get; set; } = default!;
[Column("roles"), Required]
- public string RoleString { get; set; }
+ public string RoleString { get; set; } = default!;
[Column("version"), Required]
public long Version { get; set; }
- public UserAvatar Avatar { get; set; }
+ public UserAvatar? Avatar { get; set; }
- public UserDetailEntity Detail { get; set; }
+ public UserDetailEntity? Detail { get; set; }
}
public class DatabaseContext : DbContext
|