course.cs

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

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

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

        #region 实体类  Course

        private int _courseId = 0;
        private Product _product = new Product();
        private Speciality _speciality = new Speciality();
        private string _title = string.Empty;
        private string _coursecode = string.Empty;
        private Section _section = new Section();

        /// <summary>
        /// 课程编码
        /// </summary>
        public int CourseId
        {
            set { this._courseId = value; }
            get { return this._courseId; }
        }

        /// <summary>
        /// 教学产品类型表实体对象 (ProductId)
        /// </summary>
        public Product Product
        {
            set { this._product = value; }
            get { return this._product; }
        }

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

        /// <summary>
        /// 课程名称
        /// </summary>
        public string Title
        {
            set { this._title = value; }
            get { return this._title; }
        }

        /// <summary>
        /// 课程代号
        /// </summary>
        public string CourseCode
        {
            set { this._coursecode = value; }
            get { return this._coursecode; }
        }

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

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

        #endregion

    }
}

⌨️ 快捷键说明

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