Browse Source

EF迁移 PUB、BBAC、HBPO SEC_DETAIL

master
mahao 1 year ago
parent
commit
d64eaaf575
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
  2. 4766
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.Designer.cs
  3. 112
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.cs
  4. 220
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

4
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

@ -832,7 +832,7 @@ namespace Win.Sfs.SettleAccount
private static void ConfigureHBPO_SEC_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity<PUB_SEC_DETAIL>(b =>
builder.Entity<HBPO_SEC_DETAIL>(b =>
{
b.ToTable($"{options.TablePrefix}_HBPO_SEC_DETAIL", options.Schema);
@ -853,7 +853,7 @@ namespace Win.Sfs.SettleAccount
private static void ConfigureBBAC_SEC_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity<PUB_SEC_DETAIL>(b =>
builder.Entity<BBAC_SEC_DETAIL>(b =>
{
b.ToTable($"{options.TablePrefix}_BBAC_SEC_DETAIL", options.Schema);

4766
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.Designer.cs

File diff suppressed because it is too large

112
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230724052214_20230724-1.cs

@ -0,0 +1,112 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202307241 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"));
migrationBuilder.CreateTable(
name: "Set_HBPO_SEC_DETAIL",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Category = table.Column<int>(type: "int", nullable: false),
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false),
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false),
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_HBPO_SEC_DETAIL", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Set_PUB_SEC_DETAIL",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Category = table.Column<int>(type: "int", nullable: false),
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false),
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false),
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_PUB_SEC_DETAIL", x => x.Id);
});
migrationBuilder.InsertData(
table: "Set_JobItem",
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" },
values: new object[] { new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Set_HBPO_SEC_DETAIL");
migrationBuilder.DropTable(
name: "Set_PUB_SEC_DETAIL");
migrationBuilder.DeleteData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"));
migrationBuilder.InsertData(
table: "Set_JobItem",
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" },
values: new object[] { new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" });
}
}
}

220
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -3310,7 +3310,7 @@ namespace Win.Sfs.SettleAccount.Migrations
b.ToTable("Set_bom");
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b =>
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.BBAC_SEC_DETAIL", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
@ -3418,6 +3418,222 @@ namespace Win.Sfs.SettleAccount.Migrations
b.ToTable("Set_BBAC_SEC_DETAIL");
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.HBPO_SEC_DETAIL", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("Category")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<DateTime>("CustomerOfflineTime")
.HasColumnType("datetime2");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<decimal>("DiffQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<decimal>("FixPrice")
.HasColumnType("decimal(18,2)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("MateType")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDes")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PJISSeqNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PN")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PrimitiveLU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("ReplaceLU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<decimal>("SAQty")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("SEQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SeqNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime>("ShippingDate")
.HasColumnType("datetime2");
b.Property<string>("WmsBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.HasKey("Id");
b.ToTable("Set_HBPO_SEC_DETAIL");
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.PUB_SEC_DETAIL", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("Category")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<DateTime>("CustomerOfflineTime")
.HasColumnType("datetime2");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<decimal>("DiffQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<decimal>("FixPrice")
.HasColumnType("decimal(18,2)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("MateType")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDes")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PJISSeqNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PN")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PrimitiveLU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("ReplaceLU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<decimal>("SAQty")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("SEQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SeqNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime>("ShippingDate")
.HasColumnType("datetime2");
b.Property<string>("WmsBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.HasKey("Id");
b.ToTable("Set_PUB_SEC_DETAIL");
});
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BQ.Vmi.JobItem", b =>
{
b.Property<Guid>("Id")
@ -3458,7 +3674,7 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasData(
new
{
Id = new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"),
Id = new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"),
Cron = "0 0 8 26 *",
IsRunning = false,
Name = "库存快照",

Loading…
Cancel
Save