teacher.cs

来自「guan yu pai ke xi tong de ruan jian」· CS 代码 · 共 68 行

CS
68
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Y2T03.CourseScheduler.CourseModel
{
    /// <summary>
    /// 实体类  Teacher
    /// </summary>
    [Serializable]
    public class Teacher
    {
        public Teacher()
        { }

        #region 实体类  Teacher

        private int _teacherid = 0;
        private string _name = string.Empty;
        private Section _section = new Section();
        private Speciality _speciality = new Speciality();

        /// <summary>
        /// 教员编号
        /// </summary>
        public int TeacherId
        {
            set { this._teacherid = value; }
            get { return this._teacherid; }
        }

        /// <summary>
        /// 教员名称
        /// </summary>
        public string Name
        {
            set { this._name = value; }
            get { return this._name; }
        }

        /// <summary>
        /// 学习阶段表实体对象(SectionCode 教员授课资格)
        /// </summary>
        public Section Section
        {
            set { this._section = value; }
            get { return this._section; }
        }

        /// <summary>
        /// 技术方向表实体对象 (SpecialityId)
        /// </summary>
        public Speciality Speciality
        {
            set { this._speciality = value; }
            get { return this._speciality; }
        }

        public override string ToString()
        {
            return this._name;
        }

        #endregion

    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?