diff --git a/IRaCIS.Core.Domain/Reading/ReadingTableQuestionAnswer.cs b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionAnswer.cs new file mode 100644 index 000000000..b4450d016 --- /dev/null +++ b/IRaCIS.Core.Domain/Reading/ReadingTableQuestionAnswer.cs @@ -0,0 +1,57 @@ + +//-------------------------------------------------------------------- +// 此代码由T4模板自动生成 byzhouhang 20210918 +// 生成时间 2022-08-22 09:26:04 +// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。 +using System; +using IRaCIS.Core.Domain.Share; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +namespace IRaCIS.Core.Domain.Models +{ + /// + ///ReadingTableQuestionAnswer + /// + [Table("ReadingTableQuestionAnswer")] + public class ReadingTableQuestionAnswer : Entity, IAuditAdd + { + /// + /// 问题Id + /// + + public Guid QuestionId { get; set; } + + /// + /// 任务Id + /// + public Guid TaskId { get; set; } + + /// + /// 项目Id + /// + public Guid TrialId { get; set; } + + /// + /// 行号 + /// + public int RowIndex { get; set; } + + /// + /// 答案 + /// + public string Answer { get; set; } + + /// + /// 创建时间 + /// + public DateTime CreateTime { get; set; } + + /// + /// 创建人 + /// + public Guid CreateUserId { get; set; } + + } + + +} diff --git a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs index 873687b71..5649a40ed 100644 --- a/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs +++ b/IRaCIS.Core.Infra.EFCore/Context/IRaCISDBContext.cs @@ -439,6 +439,8 @@ namespace IRaCIS.Core.Infra.EFCore public virtual DbSet SystemNoticeUserType { get; set; } + public virtual DbSet ReadingTableQuestionAnswer { get; set; } + #region 废弃 diff --git a/IRaCIS.Core.Test/DbHelper.ttinclude b/IRaCIS.Core.Test/DbHelper.ttinclude index 7c295999f..28641ab8b 100644 --- a/IRaCIS.Core.Test/DbHelper.ttinclude +++ b/IRaCIS.Core.Test/DbHelper.ttinclude @@ -4,7 +4,7 @@ public static readonly string ConnectionString = "Server=123.56.94.154,1433\\MSSQLSERVER;Database=IRaCIS_New_Tet;User ID=sa;Password=dev123456DEV;TrustServerCertificate=true"; public static readonly string DbDatabase = "IRaCIS_New_Tet"; //ַ,ƴ - public static readonly string TableName = "ReadingTableQuestionTrial"; + public static readonly string TableName = "ReadingTableQuestionAnswer"; //ļ service Ƿҳ } #>