27 lines
735 B
C#
27 lines
735 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FWLAZ_Web.Data
|
|
{
|
|
/// <summary>
|
|
/// Eine Frage kann zu mehreren QuestionGroups gehören (bspw. hat Bronze die Fragen 1-16, Silber die Fragen 1-24 usw.)
|
|
/// </summary>
|
|
public class QuestionGroup
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = null!;
|
|
public int Order { get; set; }
|
|
public List<Question> Questions { get; set; } = new List<Question>();
|
|
public virtual Quiz Quiz { get; set; } = null!;
|
|
|
|
public QuestionGroup() { }
|
|
public QuestionGroup(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
}
|
|
}
|