classroom.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>
    /// 实体类  ClassRoom
    /// </summary>
    [Serializable]
    public class ClassRoom
    {
        public ClassRoom()
        { }

        #region 实体类  ClassRoom

        private int _roomid = 0;
        private RoomType _roomType = new RoomType();
        private Product _product = new Product();
        private string _title = string.Empty;

        /// <summary>
        /// 教学设施编码
        /// </summary>
        public int RoomId
        {
            set { this._roomid = value; }
            get { return this._roomid; }
        }

        /// <summary>
        /// 教学设施类型表实体对象 (TypeId)
        /// </summary>
        public RoomType RoomType
        {
            set { this._roomType = value; }
            get { return this._roomType; }
        }

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

        /// <summary>
        /// 教学设施描述
        /// </summary>
        public string Title
        {
            set { this._title = value; }
            get { return this._title; }
        }

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

        #endregion

    }
}

⌨️ 快捷键说明

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