| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using Abp.Domain.Entities.Auditing;
- using WeOnlineApp.Authorization.Users;
- using WeOnlineApp.Configuration;
- namespace WeOnlineApp.Question
- {
- /// <summary>
- /// 问题
- /// </summary>
- [Table("Train_QuestionAnswerInfos")]
- public class QuestionAnswerInfo : AuditedEntity<string, User>
- {
- public const int ContentLength = 1000;
- public string AnswerNo { get; set; }
- [ForeignKey("AnswerNo")]
- public QuestionAnswerInfo Parent { get; set; }
- [MaxLength(IwbConsts.PrimaryKey)]
- public string QuestionNo { get; set; }
- [ForeignKey("QuestionNo")]
- public QuestionInfo QuestionInfo { get; set; }
- /// <summary>
- /// 答案状态
- /// </summary>
- public int AnswerState { get; set; }
- /// <summary>
- /// 回答内容
- /// </summary>
- [MaxLength(ContentLength)]
- public string ContentInfo { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [MaxLength(RemarkLength)]
- public string Remark { get; set; }
- public const int RemarkLength = 500;
- }
- }
|