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
|
|
|
|
|
{
|
2024-10-29 13:50:35 +04:00
|
|
|
|
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
|
|
|
|
|
2024-10-29 13:50:35 +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
|
|
|
|
{
|
2024-10-29 13:50:35 +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,
|
2024-10-29 13:50:35 +04:00
|
|
|
|
Marks = marks
|
|
|
|
|
};
|
2024-10-28 19:18:57 +04:00
|
|
|
|
}
|
2024-10-29 13:50:35 +04:00
|
|
|
|
|
2024-10-28 19:18:57 +04:00
|
|
|
|
}
|
|
|
|
|
}
|