修改长度
continuous-integration/drone/push Build is passing Details

IRC_NewDev
he 2024-11-25 16:37:34 +08:00
parent 56f27189f1
commit e7193be3d7
4 changed files with 18260 additions and 4 deletions

View File

@ -89,6 +89,7 @@ public class Doctor : BaseFullAuditEntity
/// <summary>
/// GCP机构
/// </summary>
[MaxLength]
public string GCPAgencies { get; set; }
public Guid GCPId { get; set; }
@ -215,6 +216,7 @@ public class Doctor : BaseFullAuditEntity
/// <summary>
/// 银行名称
/// </summary>
[MaxLength]
public string BankName { get; set; } = string.Empty;
/// <summary>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,54 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class MaxLength : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "GCPAgencies",
table: "Doctor",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(400)",
oldMaxLength: 400);
migrationBuilder.AlterColumn<string>(
name: "BankName",
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: "GCPAgencies",
table: "Doctor",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "BankName",
table: "Doctor",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
}
}
}

View File

@ -1325,8 +1325,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<string>("BankName")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
.HasColumnType("nvarchar(max)");
b.Property<string>("BankNum")
.IsRequired()
@ -1399,8 +1398,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<string>("GCPAgencies")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
.HasColumnType("nvarchar(max)");
b.Property<Guid>("GCPId")
.HasColumnType("uniqueidentifier");