添加 IndicationTypeId
parent
68b960abec
commit
3a978b561b
|
@ -17066,6 +17066,11 @@
|
||||||
数据类型
|
数据类型
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Application.Contracts.TrialExperienceCommand.IndicationTypeId">
|
||||||
|
<summary>
|
||||||
|
适应症类型ID
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Application.Contracts.TrialExperienceCommand.TrialId">
|
<member name="P:IRaCIS.Application.Contracts.TrialExperienceCommand.TrialId">
|
||||||
<summary>
|
<summary>
|
||||||
项目Id
|
项目Id
|
||||||
|
|
|
@ -8,6 +8,11 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ExperienceDataType ExperienceDataType { get; set; }
|
public ExperienceDataType ExperienceDataType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 适应症类型ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid IndicationTypeId { get; set; } = Guid.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目Id
|
/// 项目Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -469,6 +469,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
PhaseId = trial.PhaseId,
|
PhaseId = trial.PhaseId,
|
||||||
StartTime = DateTime.Now,
|
StartTime = DateTime.Now,
|
||||||
IndicationEnum = trial.IndicationEnum,
|
IndicationEnum = trial.IndicationEnum,
|
||||||
|
IndicationTypeId= trial.IndicationTypeId,
|
||||||
ExperienceDataType = dataType,
|
ExperienceDataType = dataType,
|
||||||
TrialId = trial.Id,
|
TrialId = trial.Id,
|
||||||
VisitReadingCount = 0,
|
VisitReadingCount = 0,
|
||||||
|
|
|
@ -50,7 +50,12 @@ public partial class TrialExperience : BaseFullAuditEntity
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数据类型
|
/// 数据类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ExperienceDataType ExperienceDataType { get; set; }
|
public ExperienceDataType ExperienceDataType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ÊÊÓ¦Ö¢ÀàÐÍID
|
||||||
|
/// </summary>
|
||||||
|
public Guid IndicationTypeId { get; set; } = Guid.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目Id
|
/// 项目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