diff options
author | crupest <crupest@outlook.com> | 2020-02-29 00:14:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-02-29 00:14:05 +0800 |
commit | 00955e765a7c847e47658044d84e58309d373bf5 (patch) | |
tree | 8e0c2f151948951c9aac633a9a6eefe2a236953e /Timeline/Entities/UserEntity.cs | |
parent | 6bf12fb184ee87ba28293ecc576915cbbeab0cf0 (diff) | |
download | timeline-00955e765a7c847e47658044d84e58309d373bf5.tar.gz timeline-00955e765a7c847e47658044d84e58309d373bf5.tar.bz2 timeline-00955e765a7c847e47658044d84e58309d373bf5.zip |
Remove the length constraint in entity as entity framework core does not use them as well.
Diffstat (limited to 'Timeline/Entities/UserEntity.cs')
-rw-r--r-- | Timeline/Entities/UserEntity.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Entities/UserEntity.cs b/Timeline/Entities/UserEntity.cs index 946c3fa2..1ef3f98c 100644 --- a/Timeline/Entities/UserEntity.cs +++ b/Timeline/Entities/UserEntity.cs @@ -17,7 +17,7 @@ namespace Timeline.Entities [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
- [Column("username"), MaxLength(26), Required]
+ [Column("username"), Required]
public string Username { get; set; } = default!;
[Column("password"), Required]
@@ -29,7 +29,7 @@ namespace Timeline.Entities [Column("version"), Required]
public long Version { get; set; }
- [Column("nickname"), MaxLength(100)]
+ [Column("nickname")]
public string? Nickname { get; set; }
public UserAvatarEntity? Avatar { get; set; }
|