33 lines
770 B
C#
33 lines
770 B
C#
using StudentProgressRecord.Entity.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StudentProgressRecord.Entity
|
|
{
|
|
public class StudentTransition
|
|
{
|
|
|
|
public long Id { get; set; }
|
|
|
|
public long StudentId { get; set; }
|
|
|
|
public Operations Operation { get; set; }
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
public static StudentTransition CreateOperation(long id, long studentId, Operations operation, DateTime time)
|
|
{
|
|
return new StudentTransition
|
|
{
|
|
Id = id,
|
|
StudentId = studentId,
|
|
Operation = operation,
|
|
Date = time
|
|
};
|
|
}
|
|
}
|
|
}
|