aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-16 12:31:49 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-16 12:31:49 +0200
commit5bc055720bd1218af76bafb7437d5150424f6191 (patch)
tree6b897c5c1a507da2dc1c8800961a4880800db118 /src
parent5ae2e175dc6f32bc662b0c84b17855216714f874 (diff)
downloadDevHive-5bc055720bd1218af76bafb7437d5150424f6191.tar
DevHive-5bc055720bd1218af76bafb7437d5150424f6191.tar.gz
DevHive-5bc055720bd1218af76bafb7437d5150424f6191.zip
Removed unecessary Data annotations in data user model
Diffstat (limited to 'src')
-rw-r--r--src/DevHive.Data/Models/User.cs11
1 files changed, 0 insertions, 11 deletions
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; }