添加 IndicationTypeId
parent
68b960abec
commit
3a978b561b
|
@ -17066,6 +17066,11 @@
|
|||
数据类型
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Application.Contracts.TrialExperienceCommand.IndicationTypeId">
|
||||
<summary>
|
||||
适应症类型ID
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Application.Contracts.TrialExperienceCommand.TrialId">
|
||||
<summary>
|
||||
项目Id
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
/// </summary>
|
||||
public ExperienceDataType ExperienceDataType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 适应症类型ID
|
||||
/// </summary>
|
||||
public Guid IndicationTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
/// </summary>
|
||||
|
|
|
@ -469,6 +469,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
PhaseId = trial.PhaseId,
|
||||
StartTime = DateTime.Now,
|
||||
IndicationEnum = trial.IndicationEnum,
|
||||
IndicationTypeId= trial.IndicationTypeId,
|
||||
ExperienceDataType = dataType,
|
||||
TrialId = trial.Id,
|
||||
VisitReadingCount = 0,
|
||||
|
|
|
@ -50,7 +50,12 @@ public partial class TrialExperience : BaseFullAuditEntity
|
|||
/// <summary>
|
||||
/// 数据类型
|
||||
/// </summary>
|
||||
public ExperienceDataType ExperienceDataType { get; set; }
|
||||
public ExperienceDataType ExperienceDataType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ÊÊÓ¦Ö¢ÀàÐÍID
|
||||
/// </summary>
|
||||
public Guid IndicationTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 项目Id
|
||||
|
|
18022
IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.Designer.cs
generated
Normal file
18022
IRaCIS.Core.Infra.EFCore/Migrations/20241030012507_IndicationTypeId.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class IndicationTypeId : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "IndicationTypeId",
|
||||
table: "TrialExperience",
|
||||
type: "uniqueidentifier",
|
||||
nullable: false,
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TrialExperience_TrialId",
|
||||
table: "TrialExperience",
|
||||
column: "TrialId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_TrialExperience_Trial_TrialId",
|
||||
table: "TrialExperience",
|
||||
column: "TrialId",
|
||||
principalTable: "Trial",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_TrialExperience_Trial_TrialId",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TrialExperience_TrialId",
|
||||
table: "TrialExperience");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IndicationTypeId",
|
||||
table: "TrialExperience");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue