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