添加字段
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e430c40b99
commit
334e8f6267
|
|
@ -19325,6 +19325,11 @@
|
||||||
表单类型
|
表单类型
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Contracts.SetCriterionReadingInfoInDto.DefaultSegmentName">
|
||||||
|
<summary>
|
||||||
|
默认SegmentName
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Contracts.SetCriterionReadingInfoInDto.SegmentToolList">
|
<member name="P:IRaCIS.Core.Application.Contracts.SetCriterionReadingInfoInDto.SegmentToolList">
|
||||||
<summary>
|
<summary>
|
||||||
分割工具
|
分割工具
|
||||||
|
|
|
||||||
|
|
@ -946,6 +946,12 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public class SetCriterionReadingInfoInDto
|
public class SetCriterionReadingInfoInDto
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 默认SegmentName
|
||||||
|
/// </summary>
|
||||||
|
public DefaultSegmentNameDto DefaultSegmentName { get; set; }
|
||||||
|
|
||||||
public List<string> ReadingToolList { get; set; } = new List<string>() { };
|
public List<string> ReadingToolList { get; set; } = new List<string>() { };
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -640,6 +640,7 @@ namespace IRaCIS.Core.Application
|
||||||
CriterionModalitys = inDto.CriterionModalitys,
|
CriterionModalitys = inDto.CriterionModalitys,
|
||||||
ReadingTool = inDto.ReadingTool,
|
ReadingTool = inDto.ReadingTool,
|
||||||
IsReadingPeriod = inDto.IsReadingPeriod,
|
IsReadingPeriod = inDto.IsReadingPeriod,
|
||||||
|
DefaultSegmentName=inDto.DefaultSegmentName,
|
||||||
//DigitPlaces=inDto.DigitPlaces,
|
//DigitPlaces=inDto.DigitPlaces,
|
||||||
IsReadingTaskViewInOrder = inDto.IsReadingTaskViewInOrder,
|
IsReadingTaskViewInOrder = inDto.IsReadingTaskViewInOrder,
|
||||||
ReadingTaskViewEnum = inDto.ReadingTaskViewEnum,
|
ReadingTaskViewEnum = inDto.ReadingTaskViewEnum,
|
||||||
|
|
|
||||||
|
|
@ -186,11 +186,11 @@ public class ReadingQuestionCriterionTrial : BaseAddAuditEntity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> SegmentToolList { get; set; } = new List<string>();
|
public List<string> SegmentToolList { get; set; } = new List<string>();
|
||||||
|
|
||||||
///// <summary>
|
/// <summary>
|
||||||
///// 默认SegmentName
|
/// 默认SegmentName
|
||||||
///// </summary>
|
/// </summary>
|
||||||
//[MaxLength]
|
[MaxLength]
|
||||||
//public DefaultSegmentNameDto DefaultSegmentName { get; set; }
|
public DefaultSegmentNameDto DefaultSegmentName { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,11 +103,11 @@ public class IRaCISDBContext : DbContext
|
||||||
|
|
||||||
modelBuilder.Entity<ReadingQuestionCriterionTrial>(entity =>
|
modelBuilder.Entity<ReadingQuestionCriterionTrial>(entity =>
|
||||||
{
|
{
|
||||||
////默认SegmentName
|
//默认SegmentName
|
||||||
//entity.OwnsOne(x => x.DefaultSegmentName, ownedNavigationBuilder =>
|
entity.OwnsOne(x => x.DefaultSegmentName, ownedNavigationBuilder =>
|
||||||
//{
|
{
|
||||||
// ownedNavigationBuilder.ToJson();
|
ownedNavigationBuilder.ToJson();
|
||||||
//});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
#region pgsql codefirst 配置 暂时屏蔽
|
#region pgsql codefirst 配置 暂时屏蔽
|
||||||
|
|
|
||||||
22046
IRaCIS.Core.Infra.EFCore/Migrations/20260413090832_SegmentName3.Designer.cs
generated
Normal file
22046
IRaCIS.Core.Infra.EFCore/Migrations/20260413090832_SegmentName3.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,29 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class SegmentName3 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "DefaultSegmentName",
|
||||||
|
table: "ReadingQuestionCriterionTrial",
|
||||||
|
type: "nvarchar(max)",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "{\"SegmentationName\":\"\",\"SegmentNameList\":[]}");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "DefaultSegmentName",
|
||||||
|
table: "ReadingQuestionCriterionTrial");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -18545,8 +18545,35 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
|
b.OwnsOne("IRaCIS.Core.Domain.Models.DefaultSegmentNameDto", "DefaultSegmentName", b1 =>
|
||||||
|
{
|
||||||
|
b1.Property<Guid>("ReadingQuestionCriterionTrialId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b1.Property<string>("SegmentNameList")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b1.Property<string>("SegmentationName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b1.HasKey("ReadingQuestionCriterionTrialId");
|
||||||
|
|
||||||
|
b1.ToTable("ReadingQuestionCriterionTrial");
|
||||||
|
|
||||||
|
b1.ToJson("DefaultSegmentName");
|
||||||
|
|
||||||
|
b1.WithOwner()
|
||||||
|
.HasForeignKey("ReadingQuestionCriterionTrialId");
|
||||||
|
});
|
||||||
|
|
||||||
b.Navigation("CreateUserRole");
|
b.Navigation("CreateUserRole");
|
||||||
|
|
||||||
|
b.Navigation("DefaultSegmentName")
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Trial");
|
b.Navigation("Trial");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue