四色图添加序号 T4 Add-Migration 测试
This commit is contained in:
		
							parent
							
								
									6378e8315a
								
							
						
					
					
						commit
						42e916da7e
					
				
							
								
								
									
										128475
									
								
								APT.Data.Migrations/Migrations/20250922013829_wyw2025092201.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										128475
									
								
								APT.Data.Migrations/Migrations/20250922013829_wyw2025092201.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using Microsoft.EntityFrameworkCore.Migrations;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace APT.Data.Migrations.Migrations
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public partial class wyw2025092201 : Migration
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        protected override void Up(MigrationBuilder migrationBuilder)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            migrationBuilder.AddColumn<int>(
 | 
				
			||||||
 | 
					                name: "ZDEX",
 | 
				
			||||||
 | 
					                table: "T_PC_INFO",
 | 
				
			||||||
 | 
					                type: "int",
 | 
				
			||||||
 | 
					                nullable: false,
 | 
				
			||||||
 | 
					                defaultValue: 0);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        protected override void Down(MigrationBuilder migrationBuilder)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            migrationBuilder.DropColumn(
 | 
				
			||||||
 | 
					                name: "ZDEX",
 | 
				
			||||||
 | 
					                table: "T_PC_INFO");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -53321,6 +53321,9 @@ namespace APT.Data.Migrations.Migrations
 | 
				
			|||||||
                    b.Property<int>("WIDTH")
 | 
					                    b.Property<int>("WIDTH")
 | 
				
			||||||
                        .HasColumnType("int");
 | 
					                        .HasColumnType("int");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    b.Property<int>("ZDEX")
 | 
				
			||||||
 | 
					                        .HasColumnType("int");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.HasKey("ID");
 | 
					                    b.HasKey("ID");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.HasIndex("ORG_ID");
 | 
					                    b.HasIndex("ORG_ID");
 | 
				
			||||||
@ -91593,7 +91596,7 @@ namespace APT.Data.Migrations.Migrations
 | 
				
			|||||||
                    b.Property<DateTime?>("CHECK_TIME")
 | 
					                    b.Property<DateTime?>("CHECK_TIME")
 | 
				
			||||||
                        .HasColumnType("datetime2");
 | 
					                        .HasColumnType("datetime2");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<Guid>("CHECK_TYPE_ID")
 | 
					                    b.Property<Guid?>("CHECK_TYPE_ID")
 | 
				
			||||||
                        .HasColumnType("uniqueidentifier");
 | 
					                        .HasColumnType("uniqueidentifier");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.Property<string>("CODE")
 | 
					                    b.Property<string>("CODE")
 | 
				
			||||||
@ -125247,8 +125250,7 @@ namespace APT.Data.Migrations.Migrations
 | 
				
			|||||||
                    b.HasOne("APT.MS.Domain.Entities.WB.T_WB_CHECK_TYPE", "Nav_CheckType")
 | 
					                    b.HasOne("APT.MS.Domain.Entities.WB.T_WB_CHECK_TYPE", "Nav_CheckType")
 | 
				
			||||||
                        .WithMany()
 | 
					                        .WithMany()
 | 
				
			||||||
                        .HasForeignKey("CHECK_TYPE_ID")
 | 
					                        .HasForeignKey("CHECK_TYPE_ID")
 | 
				
			||||||
                        .OnDelete(DeleteBehavior.Restrict)
 | 
					                        .OnDelete(DeleteBehavior.Restrict);
 | 
				
			||||||
                        .IsRequired();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department")
 | 
					                    b.HasOne("APT.BaseData.Domain.Entities.FM.T_FM_DEPARTMENT", "Nav_Department")
 | 
				
			||||||
                        .WithMany()
 | 
					                        .WithMany()
 | 
				
			||||||
 | 
				
			|||||||
@ -89,5 +89,11 @@ namespace APT.MS.Domain.Entities.PC
 | 
				
			|||||||
        [Description("色块")]
 | 
					        [Description("色块")]
 | 
				
			||||||
        [FormFieldEdit]
 | 
					        [FormFieldEdit]
 | 
				
			||||||
        public virtual ICollection<T_PC_INFO_COLOR> Nav_Colors { get; set; }
 | 
					        public virtual ICollection<T_PC_INFO_COLOR> Nav_Colors { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        /// <summary>
 | 
				
			||||||
 | 
					        /// 四色图顺序
 | 
				
			||||||
 | 
					        /// </summary>
 | 
				
			||||||
 | 
					        [Description("四色图顺序")]
 | 
				
			||||||
 | 
					        public int ZDEX { get; set; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user