Guest User

Untitled

a guest
Mar 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // In ApplicationUser Table
  2. [Required]
  3. [StringLength(10, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 2)]
  4. [Display(Name = "Employee Id")]
  5. public string EmployeeId { get; set; }
  6.  
  7. public string OtherUser { get; set; }
  8.  
  9. [ForeignKey("ApplicationUser")]
  10. public string? UserId { get; set; }
  11. public virtual ApplicationUser ApplicationUser { get; set; }
Add Comment
Please, Sign In to add comment