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 }; } } }