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 Id { get; set; } public long SubjectId { get; set; } public long TeacherId { get; set; } public DateTime Date { get; set; } public IEnumerable Marks { get; set; } = []; public static Statement CreateOperation(long id, long subjectId, long teacherId, DateTime timeStamp, IEnumerable marks) { return new Statement { Id = id, SubjectId = subjectId, TeacherId = teacherId, Date = timeStamp, Marks = marks }; } } }