Pibd-22_Lyakhov_T.I._Simple/StudentProgressRecord/Entity/Statement.cs

35 lines
850 B
C#
Raw Normal View History

2024-10-28 19:18:57 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentProgressRecord.Entity
{
public class Statement
{
public long SubjectId { get; set; }
public long TeacherId { get; set; }
public long StudentId { get; set; }
2024-10-28 21:38:22 +04:00
public DateTime Date { get; set; }
2024-10-28 19:18:57 +04:00
public int Mark { get; set; }
2024-10-28 21:38:22 +04:00
public static Statement CreateEntity(long subjectId, long teacherId, long studentId, DateTime timeStamp, int mark)
2024-10-28 19:18:57 +04:00
{
return new Statement
{
SubjectId = subjectId,
TeacherId = teacherId,
StudentId = studentId,
2024-10-28 21:38:22 +04:00
Date = timeStamp,
2024-10-28 19:18:57 +04:00
Mark = mark };
}
}
}