Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5.  
  6. namespace AskMeDudeClassLibrary
  7. {
  8. public class Question
  9. {
  10. public int QuestionId { get; set; }
  11.  
  12.  
  13. [MinLength(1), StringLength(4000)]
  14. [Required]
  15. public string Text { get; set; }
  16.  
  17. [MinLength(1), StringLength(500)]
  18. [Required]
  19. public string A { get; set; }
  20.  
  21.  
  22. [MinLength(1), StringLength(500)]
  23. [Required]
  24. public string B { get; set; }
  25.  
  26.  
  27. [MinLength(1), StringLength(500)]
  28. [Required]
  29. public string C { get; set; }
  30.  
  31.  
  32. [MinLength(1), StringLength(500)]
  33. [Required]
  34. public string D { get; set; }
  35.  
  36. [MinLength(1), StringLength(500)]
  37. [Required]
  38. public string E { get; set; }
  39.  
  40. [StringLength(1), MinLength(1)]
  41. [Required]
  42. public string UserAnswer { get; set; }
  43.  
  44. [StringLength(1), MinLength(1)]
  45. [Required]
  46. public string RightAnswer { get; set; }
  47.  
  48. [Required]
  49. public int UserId { get; set; }
  50. public User User { get; set; }
  51.  
  52. [Required]
  53. public int CategoryId { get; set; }
  54. public Category Category { get; set; }
  55.  
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement