Erster Entwurf DataModel;
This commit is contained in:
20
MultipleChoiceTrainer/Models/DataModels/Question.cs
Normal file
20
MultipleChoiceTrainer/Models/DataModels/Question.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MultipleChoiceTrainer.Models.DataModels
|
||||
{
|
||||
public class Question
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Text { get; set; }
|
||||
|
||||
public Section Section { get; set; }
|
||||
public int SectionId { get; set; }
|
||||
|
||||
public ICollection<Choice> Choices { get; set; } = new HashSet<Choice>();
|
||||
|
||||
public ICollection<Answer> Answers { get; set; } = new HashSet<Answer>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user