37 lines
893 B
C#
37 lines
893 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; private 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
|
|
};
|
|
}
|
|
|
|
}
|
|
}
|