diff options
| Commit | 5bc055720bd1218af76bafb7437d5150424f6191 (patch) | |
|---|---|---|
| Author | 2020-12-16 12:31:49 +0200 | |
| Committer | 2020-12-16 12:31:49 +0200 | |
| Files | 6b897c5c1a507da2dc1c8800961a4880800db118 /src | |
| DevHive-5bc055720bd1218af76bafb7437d5150424f6191.tar DevHive-5bc055720bd1218af76bafb7437d5150424f6191.tar.gz DevHive-5bc055720bd1218af76bafb7437d5150424f6191.zip | ||
| Parent | 5ae2e175dc6f32bc662b0c84b17855216714f874 (diff) | |
Removed unecessary Data annotations in data user model
1 files changed, 0 insertions, 11 deletions
| -rw-r--r-- | src/DevHive.Data/Models/User.cs | 11 |
diff --git a/src/DevHive.Data/Models/User.cs b/src/DevHive.Data/Models/User.cs index 62624e1..a3731cb 100644 --- a/src/DevHive.Data/Models/User.cs +++ b/src/DevHive.Data/Models/User.cs @@ -1,5 +1,4 @@ using System; -using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.AspNetCore.Identity; @@ -8,24 +7,14 @@ namespace DevHive.Data.Models [Table("Users")] public class User : IdentityUser<Guid>, IModel { - [Required] - [MinLength(3)] - [MaxLength(50)] - [Display(Name = "Username")] public override string UserName { get => base.UserName; set => base.UserName = value; } - [Required] - [MinLength(3)] - [MaxLength(30)] public string FirstName { get; set; } - [Required] - [MinLength(3)] - [MaxLength(30)] public string LastName { get; set; } public string ProfilePicture { get; set; } |
