You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.01-QCM_MuscuMaths/WebApi/Entities/AnswerEntity.cs

20 lines
562 B

using System.ComponentModel.DataAnnotations.Schema;
namespace Entities
{
public class AnswerEntity
{
/// <summary>
/// define an entity of an answer for a Question with Mutiple Choice
/// properties :
/// Id : identifier in the database
/// Content : content of the answer
/// </summary>
public int Id { get; set; }
public string Content { get; set; } = null!;
[ForeignKey(nameof(QuestionEntity))]
public int IdQuestion { get; set; }
}
}