📄 employee.cs
字号:
using System;
using System.Collections;
namespace Entities
{
public class Employee
{
private Int32 employeeID;
private string employeeName;
private bool isValid;
private Int32 departmentID;
//外键关联的实体字段
private Department department ;
//教员ID
public Int32 EmployeeID
{
get{ return employeeID;}
set{employeeID=value;}
}
//教员姓名
public string EmployeeName
{
get{ return employeeName;}
set{employeeName=value;}
}
//是否有效(辞职员工无效)
public bool IsValid
{
get{ return isValid;}
set{isValid=value;}
}
//
public Int32 DepartmentID
{
get{ return departmentID;}
set{departmentID=value;}
}
//外键关联的实体属性
public Department Department
{
get{ return department; }
set{ department = value; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -