26 lines
511 B
C#
26 lines
511 B
C#
![]() |
using System;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace StudyLib.Models
|
|||
|
{
|
|||
|
public class Assignment
|
|||
|
{
|
|||
|
public long ID { get; set; }
|
|||
|
|
|||
|
[Required]
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
[Required]
|
|||
|
public DateTime Deadline { get; set; }
|
|||
|
|
|||
|
[Required]
|
|||
|
public string Description { get; set; }
|
|||
|
|
|||
|
public double FinalMarkPercent { get; set; }
|
|||
|
|
|||
|
public long SubjectId { get; set; }
|
|||
|
|
|||
|
public Subject Subject { get; set; }
|
|||
|
}
|
|||
|
}
|