assigonmentDto
This commit is contained in:
@@ -27,6 +27,10 @@ namespace Entities.Contracts
|
||||
[Column("subject_area")]
|
||||
public SubjectAreaEnum SubjectArea { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("exam_struct_id")]
|
||||
public Guid ExamStructId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("due_date")]
|
||||
public DateTime DueDate { get; set; }
|
||||
@@ -54,6 +58,8 @@ namespace Entities.Contracts
|
||||
[ForeignKey(nameof(CreatorId))]
|
||||
public User Creator { get; set; }
|
||||
public ICollection<AssignmentClass> AssignmentClasses { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ExamStructId))]
|
||||
public AssignmentQuestion ExamStruct { get; set; }
|
||||
public ICollection<AssignmentAttachment> AssignmentAttachments { get; set; }
|
||||
public ICollection<Submission> Submissions { get; set; }
|
||||
|
@@ -20,10 +20,6 @@ namespace Entities.Contracts
|
||||
[Column("question_id")]
|
||||
public Guid? QuestionId { get; set; }
|
||||
|
||||
[Column("assignment")]
|
||||
[ForeignKey("Assignment")]
|
||||
public Guid? AssignmentId { get; set; }
|
||||
|
||||
[Column("title")]
|
||||
[MaxLength(1024)]
|
||||
public string? Title { get; set; }
|
||||
@@ -54,7 +50,6 @@ namespace Entities.Contracts
|
||||
public Question? Question { get; set; }
|
||||
public Assignment? Assignment { get; set; }
|
||||
|
||||
|
||||
[ForeignKey(nameof(QuestionContextId))]
|
||||
public QuestionContext? QuestionContext { get; set; }
|
||||
|
||||
|
Reference in New Issue
Block a user