Pibd-22_Lyakhov_T.I._Simple/StudentProgressRecord/Entity/Statement.cs
2024-11-18 14:55:50 +04:00

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