2024-12-07 15:36:59 +04:00

33 lines
738 B
C#

using System.ComponentModel;
namespace StudentProgressRecord.Entity
{
public class Student
{
public long Id { get; set; }
[DisplayName("Имя")]
public string Name { get; set; }
[DisplayName("Семейное положение")]
public bool FamilyPos { get; set; }
[DisplayName("Общажитие")]
public bool Domitory { get; set; }
public static Student CreateEntity(long id, string name, bool familyPos,
bool domitory)
{
return new Student
{
Id = id,
Name = name,
FamilyPos = familyPos,
Domitory = domitory
};
}
}
}