2024-12-07 15:09:21 +04:00

38 lines
855 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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
};
}
}
}