using Edu.Common;
using Edu.Common.Plugin;
using System;
using VT.FW.DB;

namespace Edu.Model.ViewModel.Course
{
    /// <summary>
    /// 课程分类视图实体类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Course_Category_ViewModel : Entity.Course.RB_Course_Category
    {
        /// <summary>
        /// 分类编号（查询使用）
        /// </summary>    
        public string QCateIds { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTimeStr
        {
            get
            {
                return this.CreateTime.FormatTime();
            }
        }

        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public string UpdateTimeStr
        {
            get
            {
                return this.UpdateTime.FormatTime();
            }
        }

        /// <summary>
        /// 关联课程数量
        /// </summary>
        public int CourseCount { get; set; }

        /// <summary>
        /// 所属科目名称
        /// </summary>
        public string CourseSubjectName { get; set; }
    }
}