2024-10-28 19:18:57 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace StudentProgressRecord.Entity
|
|
|
|
|
{
|
|
|
|
|
public class Student
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
2024-11-08 19:32:02 +04:00
|
|
|
|
public string Name { get; set; }
|
2024-10-28 19:18:57 +04:00
|
|
|
|
|
|
|
|
|
public bool FamilyPos { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool Domitory { get; set; }
|
|
|
|
|
|
|
|
|
|
|
2024-11-08 19:32:02 +04:00
|
|
|
|
public static Student CreateEntity(long id, string name, bool familyPos,
|
2024-10-29 13:50:35 +04:00
|
|
|
|
bool domitory)
|
2024-10-28 19:18:57 +04:00
|
|
|
|
{
|
|
|
|
|
return new Student
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-08 19:32:02 +04:00
|
|
|
|
Name = name,
|
2024-10-28 19:18:57 +04:00
|
|
|
|
FamilyPos = familyPos,
|
2024-10-29 13:50:35 +04:00
|
|
|
|
Domitory = domitory
|
2024-10-28 19:18:57 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|