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

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