Files
TechHelper/Entities/Contracts/QuestionContext.cs
2025-06-20 15:37:39 +08:00

26 lines
539 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Entities.Contracts
{
public class QuestionContext
{
public Guid Id { get; set; }
public string Description { get; set; } = string.Empty;
[InverseProperty(nameof(Question.Description))]
public ICollection<Question> Questions { get; set; } = new List<Question>();
public QuestionContext()
{
Questions = new HashSet<Question>();
}
}
}