35 lines
764 B
C#
35 lines
764 B
C#
|
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; }
|
|||
|
|
|||
|
public string Fio { get; set; }
|
|||
|
|
|||
|
public bool FamilyPos { get; set; }
|
|||
|
|
|||
|
public bool Domitory { get; set; }
|
|||
|
|
|||
|
public long GroupId { get; set; }
|
|||
|
|
|||
|
public static Student CreateStudent(long id, string fio, bool familyPos, bool domitory, long groupId)
|
|||
|
{
|
|||
|
return new Student
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
Fio = fio,
|
|||
|
FamilyPos = familyPos,
|
|||
|
Domitory = domitory,
|
|||
|
GroupId = groupId
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
}
|