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

37 lines
885 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 Id { get; set; }
2024-10-28 19:18:57 +04:00
public long SubjectId { get; set; }
public long TeacherId { get; set; }
2024-10-28 21:38:22 +04:00
public DateTime Date { get; set; }
2024-10-28 19:18:57 +04:00
2024-11-18 14:55:50 +04:00
public IEnumerable<Marks> Marks { get; set; } = [];
2024-10-28 19:18:57 +04:00
public static Statement CreateOperation(long id, long subjectId, long teacherId,
DateTime timeStamp, IEnumerable<Marks> marks)
2024-10-28 19:18:57 +04:00
{
return new Statement
{
Id = id,
SubjectId = subjectId,
2024-10-28 19:18:57 +04:00
TeacherId = teacherId,
2024-10-28 21:38:22 +04:00
Date = timeStamp,
Marks = marks
};
2024-10-28 19:18:57 +04:00
}
2024-10-28 19:18:57 +04:00
}
}