Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class Account
  2. {
  3. [Key]
  4. public int Id { get; set; }
  5.  
  6. [Index(IsUnique = true), Required]
  7. public string UserName { get; set; }
  8.  
  9. [Required]
  10. public string Password { get; set; }
  11.  
  12. [Required]
  13. public string Email { get; set; }
  14. }
  15.  
  16. var account = new Account
  17. {
  18. UserName = "X",
  19. Password = "X",
  20. Email = "NotValidEmail"
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement