SurveyVista/Model/Question.cs
2024-03-10 13:46:37 +01:00

27 lines
642 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Question
{
public Question()
{
Answers=new List<Answer>();
}
public int Id { get; set; }
public string? Text { get; set; }
public QuestionType Type { get; set; }
public int QuestionnaireId { get; set; }
[ForeignKey("QuestionnaireId")]
public Questionnaire? Questionnaire { get; set; }
public List<Answer> Answers { get; set; }
}
}