From b387e4fdb45e934bcfa1188320e02d5193691c22 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 22 Aug 2022 09:30:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E6=A0=BC=E7=AD=94?= =?UTF-8?q?=E6=A1=88=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Reading/ReadingTableQuestionAnswer.cs | 57 +++++++++++++++++++ .../Context/IRaCISDBContext.cs | 2 + IRaCIS.Core.Test/DbHelper.ttinclude | 2 +- 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 IRaCIS.Core.Domain/Reading/ReadingTableQuestionAnswer.cs 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 Ƿҳ } #>