26 lines
584 B
C#
26 lines
584 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(AssignmentQuestion.QuestionContext))]
|
|
public ICollection<AssignmentQuestion>? Questions { get; set; } = new List<AssignmentQuestion>();
|
|
|
|
|
|
public QuestionContext()
|
|
{
|
|
Questions = new HashSet<AssignmentQuestion>();
|
|
}
|
|
}
|
|
}
|