修改长度
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
56f27189f1
commit
e7193be3d7
|
@ -89,6 +89,7 @@ public class Doctor : BaseFullAuditEntity
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// GCP机构
|
/// GCP机构
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[MaxLength]
|
||||||
public string GCPAgencies { get; set; }
|
public string GCPAgencies { get; set; }
|
||||||
|
|
||||||
public Guid GCPId { get; set; }
|
public Guid GCPId { get; set; }
|
||||||
|
@ -215,6 +216,7 @@ public class Doctor : BaseFullAuditEntity
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 银行名称
|
/// 银行名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[MaxLength]
|
||||||
public string BankName { get; set; } = string.Empty;
|
public string BankName { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
18202
IRaCIS.Core.Infra.EFCore/Migrations/20241125083643_MaxLength.Designer.cs
generated
Normal file
18202
IRaCIS.Core.Infra.EFCore/Migrations/20241125083643_MaxLength.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 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)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1325,8 +1325,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("BankName")
|
b.Property<string>("BankName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasColumnType("nvarchar(max)");
|
||||||
.HasColumnType("nvarchar(400)");
|
|
||||||
|
|
||||||
b.Property<string>("BankNum")
|
b.Property<string>("BankNum")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
@ -1399,8 +1398,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("GCPAgencies")
|
b.Property<string>("GCPAgencies")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasColumnType("nvarchar(max)");
|
||||||
.HasColumnType("nvarchar(400)");
|
|
||||||
|
|
||||||
b.Property<Guid>("GCPId")
|
b.Property<Guid>("GCPId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
Loading…
Reference in New Issue