Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Text;
- namespace AskMeDudeClassLibrary
- {
- public class Question
- {
- public int QuestionId { get; set; }
- [MinLength(1), StringLength(4000)]
- [Required]
- public string Text { get; set; }
- [MinLength(1), StringLength(500)]
- [Required]
- public string A { get; set; }
- [MinLength(1), StringLength(500)]
- [Required]
- public string B { get; set; }
- [MinLength(1), StringLength(500)]
- [Required]
- public string C { get; set; }
- [MinLength(1), StringLength(500)]
- [Required]
- public string D { get; set; }
- [MinLength(1), StringLength(500)]
- [Required]
- public string E { get; set; }
- [StringLength(1), MinLength(1)]
- [Required]
- public string UserAnswer { get; set; }
- [StringLength(1), MinLength(1)]
- [Required]
- public string RightAnswer { get; set; }
- [Required]
- public int UserId { get; set; }
- public User User { get; set; }
- [Required]
- public int CategoryId { get; set; }
- public Category Category { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement