修改字段
This commit is contained in:
parent
a451b4dfe4
commit
9d9feb0dec
136434
APT.Data.Migrations/Migrations/20251122114010_hmr2025112203.Designer.cs
generated
Normal file
136434
APT.Data.Migrations/Migrations/20251122114010_hmr2025112203.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,37 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace APT.Data.Migrations.Migrations
|
||||
{
|
||||
public partial class hmr2025112203 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FM_USER_USER_ID",
|
||||
table: "T_FO_FIRE_JOB_WB_USER");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_FO_FIRE_JOB_WB_USER_T_OG_RELATED_USER_USER_ID",
|
||||
table: "T_FO_FIRE_JOB_WB_USER",
|
||||
column: "USER_ID",
|
||||
principalTable: "T_OG_RELATED_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_T_FO_FIRE_JOB_WB_USER_T_OG_RELATED_USER_USER_ID",
|
||||
table: "T_FO_FIRE_JOB_WB_USER");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FM_USER_USER_ID",
|
||||
table: "T_FO_FIRE_JOB_WB_USER",
|
||||
column: "USER_ID",
|
||||
principalTable: "T_FM_USER",
|
||||
principalColumn: "ID",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -108960,7 +108960,7 @@ namespace APT.Data.Migrations.Migrations
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_USER", "Nav_User")
|
||||
b.HasOne("APT.MS.Domain.Entities.OG.T_OG_RELATED_USER", "Nav_User")
|
||||
.WithMany()
|
||||
.HasForeignKey("USER_ID")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
@ -45,12 +45,12 @@ namespace APT.MS.Domain.Entities.FO
|
||||
[DataFieldLength(50)]
|
||||
public string USER_NAME { get; set; }
|
||||
|
||||
[Description("内部人员")]
|
||||
[Description("相关方人员")]
|
||||
[DataFieldForeignKey("Nav_User")]
|
||||
public Guid? USER_ID { get; set; }
|
||||
|
||||
[Description("导航属性:人员")]
|
||||
public virtual T_FM_USER Nav_User { get; set; }
|
||||
public virtual T_OG_RELATED_USER Nav_User { get; set; }
|
||||
[Description("附件")]
|
||||
[FormFieldEdit]
|
||||
public virtual ICollection<T_FO_FIRE_JOB_WB_USER_FILE> Nav_UserFiles { get; set; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user