34 lines
689 B
C#
34 lines
689 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 Name { get; set; }
|
|
|
|
public bool FamilyPos { get; set; }
|
|
|
|
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
|
|
};
|
|
}
|
|
}
|
|
}
|