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 | b00cfa30a4f6a1c6d896d46da7dd063abf632cd3 (patch) | |
tree | e6168234660307247111ee369a0b2123823614eb /Timeline/Entities/DatabaseContext.cs | |
parent | 2984abc9aa0429380459e5b5b6fda2d20058041b (diff) | |
download | timeline-b00cfa30a4f6a1c6d896d46da7dd063abf632cd3.tar.gz timeline-b00cfa30a4f6a1c6d896d46da7dd063abf632cd3.tar.bz2 timeline-b00cfa30a4f6a1c6d896d46da7dd063abf632cd3.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
|