using Edu.Common;
using System.Collections.Generic;

namespace Edu.Model.ViewModel.Question
{
    /// <summary>
    /// 题库视图实体类
    /// </summary>
    public class RB_Question_ViewModel : Model.Entity.Question.RB_Question
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateByName { get; set; }

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

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

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

        /// <summary>
        /// 答案列表
        /// </summary>
        public List<Answer_ViewModel> AnswerList { get; set; }
    }
}