Guest User

Untitled

a guest
Dec 4th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1. public class BlanksTaskCreateViewModel
  2.     {
  3.         public Guid TaskID { get; set; }
  4.         public String Instruction { get; set; }
  5.         public List<BlanksQuestionCreateViewModel> Questions { get; set; }
  6.  
  7.     }
  8.  
  9. public class BlanksQuestion:TaskQuestion
  10.     {
  11.       //  public Guid TaskID { get; set;}
  12.         public virtual BlanksTask Task { get; set; }
  13.         public virtual ICollection<BlanksAnswer> Answers { get; set; }
  14.     }
  15.  
  16. public class BlanksQuestionCreateViewModel
  17.     {
  18.         public Guid QuestionID { get; set; }
  19.         public String Question { get; set; }
  20.         public int QuestionIndex { get; set; }
  21.         public IList<BlanksAnswerCreateViewModel> Answers { get; set; }
  22.  
  23.     }
  24.  
  25.  public class BlanksAnswerCreateViewModel
  26.     {
  27.         public Guid BlanksQuestionID { get; set; }
  28.         //public virtual BlanksQuestion BlanksQuestion { get; set; }
  29.         public Guid BlanksAnswerID { get; set; }
  30.         public String Answer { get; set; }
  31.         public CharIndex Index { get; set; }
  32.  
  33.     }
  34.  
  35. public class BlanksAnswer : TaskAnswer
  36.     {
  37.        [ForeignKey("Question")]
  38.        public Guid QuestionID { get; set; }
  39.        public virtual BlanksQuestion Question { get; set; }
  40.     }
Advertisement
Add Comment
Please, Sign In to add comment