SurveyVista/Model/Answer.cs
2024-03-21 11:00:24 +01:00

19 lines
470 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 Answer
{
public int Id { get; set; }
public string? Text { get; set; }
public int QuestionId { get; set; } // Foreign key for Question
[ForeignKey("QuestionId")]
public Question? Question { get; set; }
}
}