Pibd-22_Lyakhov_T.I._Simple/StudentProgressRecord/Entity/Statement.cs
2024-10-28 21:38:22 +04:00

35 lines
850 B
C#

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; }
public DateTime Date { get; set; }
public int Mark { get; set; }
public static Statement CreateEntity(long subjectId, long teacherId, long studentId, DateTime timeStamp, int mark)
{
return new Statement
{
SubjectId = subjectId,
TeacherId = teacherId,
StudentId = studentId,
Date = timeStamp,
Mark = mark };
}
}
}