修改长度
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c7d9e02b8d
commit
d0828ddf0e
|
@ -185,11 +185,13 @@ public class Doctor : BaseFullAuditEntity
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ¹¤×÷¼æÖ°
|
/// ¹¤×÷¼æÖ°
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[MaxLength]
|
||||||
public string WorkPartTime { get; set; } = string.Empty;
|
public string WorkPartTime { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ¹¤×÷¼æÖ°En
|
/// ¹¤×÷¼æÖ°En
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[MaxLength]
|
||||||
public string WorkPartTimeEn { get; set; } = string.Empty;
|
public string WorkPartTimeEn { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
18171
IRaCIS.Core.Infra.EFCore/Migrations/20241122095846_WorkPartTime.Designer.cs
generated
Normal file
18171
IRaCIS.Core.Infra.EFCore/Migrations/20241122095846_WorkPartTime.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,54 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class WorkPartTime : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "WorkPartTimeEn",
|
||||||
|
table: "Doctor",
|
||||||
|
type: "nvarchar(max)",
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(400)",
|
||||||
|
oldMaxLength: 400);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "WorkPartTime",
|
||||||
|
table: "Doctor",
|
||||||
|
type: "nvarchar(max)",
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(400)",
|
||||||
|
oldMaxLength: 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "WorkPartTimeEn",
|
||||||
|
table: "Doctor",
|
||||||
|
type: "nvarchar(400)",
|
||||||
|
maxLength: 400,
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(max)");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "WorkPartTime",
|
||||||
|
table: "Doctor",
|
||||||
|
type: "nvarchar(400)",
|
||||||
|
maxLength: 400,
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(max)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1584,13 +1584,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("WorkPartTime")
|
b.Property<string>("WorkPartTime")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasColumnType("nvarchar(max)");
|
||||||
.HasColumnType("nvarchar(400)");
|
|
||||||
|
|
||||||
b.Property<string>("WorkPartTimeEn")
|
b.Property<string>("WorkPartTimeEn")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasColumnType("nvarchar(max)");
|
||||||
.HasColumnType("nvarchar(400)");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue