Erste Version der Fragen-Eingabe

This commit is contained in:
2020-06-09 16:59:13 +02:00
parent 01585fc9ef
commit 6d84a4614b
9 changed files with 205 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
@@ -8,12 +9,14 @@ namespace MultipleChoiceTrainer.Models.DataModels
public class Question
{
public int Id { get; set; }
[Display(Name="Frage")]
public string Text { get; set; }
public Section Section { get; set; }
public int SectionId { get; set; }
public ICollection<Choice> Choices { get; set; } = new HashSet<Choice>();
[Display(Name = "Antwortmöglichkeiten")]
public List<Choice> Choices { get; set; }
public ICollection<Answer> Answers { get; set; } = new HashSet<Answer>();
}