Compare commits
2 Commits
7ee821aebd
...
a267bc13b4
Author | SHA1 | Date |
---|---|---|
|
a267bc13b4 | |
|
de976453f5 |
|
@ -160,6 +160,7 @@ public class ReadingQuestionTrial : BaseAddAuditEntity
|
|||
public string AnswerGroup { get; set; } = "[]";
|
||||
|
||||
[Comment("答案组合")]
|
||||
[MaxLength]
|
||||
public string AnswerCombination { get; set; } = "[]";
|
||||
|
||||
[Comment("裁判类型")]
|
||||
|
|
19911
IRaCIS.Core.Infra.EFCore/Migrations/20250806083458_AnswerCombination.Designer.cs
generated
Normal file
19911
IRaCIS.Core.Infra.EFCore/Migrations/20250806083458_AnswerCombination.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,40 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AnswerCombination : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "AnswerCombination",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
comment: "答案组合",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(400)",
|
||||
oldMaxLength: 400,
|
||||
oldComment: "答案组合");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "AnswerCombination",
|
||||
table: "ReadingQuestionTrial",
|
||||
type: "nvarchar(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
comment: "答案组合",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(max)",
|
||||
oldComment: "答案组合");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6199,8 +6199,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|||
|
||||
b.Property<string>("AnswerCombination")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("nvarchar(400)")
|
||||
.HasColumnType("nvarchar(max)")
|
||||
.HasComment("答案组合");
|
||||
|
||||
b.Property<string>("AnswerGroup")
|
||||
|
|
Loading…
Reference in New Issue