Browse Source

添加表索引

master
赵新宇 2 days ago
parent
commit
b94de7a2ad
  1. 12
      API/TaskManager.Entity/Entity.cs
  2. 5444
      API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs
  3. 741
      API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs
  4. 150
      API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs
  5. 21
      API/Wood.Service/Controllers/CustomLogService.cs

12
API/TaskManager.Entity/Entity.cs

@ -200,6 +200,10 @@ namespace TaskManager.Entity
public string? Remark { get; set; }
}
public class BaseEntity
{
public BaseEntity()
@ -242,6 +246,10 @@ namespace TaskManager.Entity
[Index(nameof(Id), IsUnique = true)]
[Index(nameof(TaskId), IsUnique = false)]
[Index(nameof(WriteState), IsUnique = false)]
[Index(nameof(ReadState), IsUnique = false)]
public class CherryReadBaseEntity:BaseEntity
{
@ -261,6 +269,10 @@ namespace TaskManager.Entity
}
[Index(nameof(Id), IsUnique = true)]
[Index(nameof(TaskId), IsUnique = false)]
[Index(nameof(WriteState), IsUnique = false)]
[Index(nameof(ReadState), IsUnique = false)]
public class CherryConReadBaseEntity : BaseEntity
{

5444
API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs

File diff suppressed because it is too large

741
API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs

@ -0,0 +1,741 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z2025061100001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_RETURN",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PO",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(100)",
maxLength: 100,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_ReadState",
table: "SUPPLIER_SINV_DATA",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_TaskId",
table: "SUPPLIER_SINV_DATA",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SINV_DATA_WriteState",
table: "SUPPLIER_SINV_DATA",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_ReadState",
table: "SUPPLIER_SA_WEEK",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_TaskId",
table: "SUPPLIER_SA_WEEK",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_SA_WEEK_WriteState",
table: "SUPPLIER_SA_WEEK",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_ReadState",
table: "SUPPLIER_RETURN",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_TaskId",
table: "SUPPLIER_RETURN",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_RETURN_WriteState",
table: "SUPPLIER_RETURN",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState",
table: "SUPPLIER_PRO_TSCHEDUL",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_ReadState",
table: "SUPPLIER_PRO_PLANING",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_TaskId",
table: "SUPPLIER_PRO_PLANING",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_PLANING_WriteState",
table: "SUPPLIER_PRO_PLANING",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState",
table: "SUPPLIER_PRO_HSCHEDUL",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState",
table: "SUPPLIER_PRO_CSCHEDUL",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_ReadState",
table: "SUPPLIER_PO",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_TaskId",
table: "SUPPLIER_PO",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_PO_WriteState",
table: "SUPPLIER_PO",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_ReadState",
table: "SUPPLIER_MRP_WARNING",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_TaskId",
table: "SUPPLIER_MRP_WARNING",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_WARNING_WriteState",
table: "SUPPLIER_MRP_WARNING",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_ReadState",
table: "SUPPLIER_MRP_STATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_TaskId",
table: "SUPPLIER_MRP_STATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_STATE_WriteState",
table: "SUPPLIER_MRP_STATE",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_ReadState",
table: "SUPPLIER_MRP_MONTH",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_TaskId",
table: "SUPPLIER_MRP_MONTH",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_MONTH_WriteState",
table: "SUPPLIER_MRP_MONTH",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_ReadState",
table: "SUPPLIER_MRP_DATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_TaskId",
table: "SUPPLIER_MRP_DATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_MRP_DATE_WriteState",
table: "SUPPLIER_MRP_DATE",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_ReadState",
table: "SUPPLIER_INV_DATA",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_TaskId",
table: "SUPPLIER_INV_DATA",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_INV_DATA_WriteState",
table: "SUPPLIER_INV_DATA",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_ReadState",
table: "SUPPLIER_DEL_STATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_TaskId",
table: "SUPPLIER_DEL_STATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_DEL_STATE_WriteState",
table: "SUPPLIER_DEL_STATE",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_ReadState",
table: "SUPPLIER_CON_PO",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_TaskId",
table: "SUPPLIER_CON_PO",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_PO_WriteState",
table: "SUPPLIER_CON_PO",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_ReadState",
table: "SUPPLIER_CON_MMRP",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_TaskId",
table: "SUPPLIER_CON_MMRP",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_MMRP_WriteState",
table: "SUPPLIER_CON_MMRP",
column: "WriteState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_ReadState",
table: "SUPPLIER_CON_DATE",
column: "ReadState");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_TaskId",
table: "SUPPLIER_CON_DATE",
column: "TaskId");
migrationBuilder.CreateIndex(
name: "IX_SUPPLIER_CON_DATE_WriteState",
table: "SUPPLIER_CON_DATE",
column: "WriteState");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_ReadState",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_TaskId",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SINV_DATA_WriteState",
table: "SUPPLIER_SINV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_ReadState",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_TaskId",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_SA_WEEK_WriteState",
table: "SUPPLIER_SA_WEEK");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_ReadState",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_TaskId",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_RETURN_WriteState",
table: "SUPPLIER_RETURN");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState",
table: "SUPPLIER_PRO_TSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_ReadState",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_TaskId",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_PLANING_WriteState",
table: "SUPPLIER_PRO_PLANING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState",
table: "SUPPLIER_PRO_HSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState",
table: "SUPPLIER_PRO_CSCHEDUL");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_ReadState",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_TaskId",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_PO_WriteState",
table: "SUPPLIER_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_ReadState",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_TaskId",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_WARNING_WriteState",
table: "SUPPLIER_MRP_WARNING");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_ReadState",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_TaskId",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_STATE_WriteState",
table: "SUPPLIER_MRP_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_ReadState",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_TaskId",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_MONTH_WriteState",
table: "SUPPLIER_MRP_MONTH");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_ReadState",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_TaskId",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_MRP_DATE_WriteState",
table: "SUPPLIER_MRP_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_ReadState",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_TaskId",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_INV_DATA_WriteState",
table: "SUPPLIER_INV_DATA");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_ReadState",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_TaskId",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_DEL_STATE_WriteState",
table: "SUPPLIER_DEL_STATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_ReadState",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_TaskId",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_PO_WriteState",
table: "SUPPLIER_CON_PO");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_ReadState",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_TaskId",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_MMRP_WriteState",
table: "SUPPLIER_CON_MMRP");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_ReadState",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_TaskId",
table: "SUPPLIER_CON_DATE");
migrationBuilder.DropIndex(
name: "IX_SUPPLIER_CON_DATE_WriteState",
table: "SUPPLIER_CON_DATE");
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialDescription",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(100)",
oldMaxLength: 100,
oldNullable: true);
}
}
}

150
API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs

@ -219,6 +219,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_CON_DATE", (string)null);
});
@ -343,6 +349,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_CON_MMRP", (string)null);
});
@ -416,6 +428,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_CON_PO", (string)null);
});
@ -1950,8 +1968,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PlantId")
.HasMaxLength(50)
@ -2013,6 +2031,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_DEL_STATE");
});
@ -2542,8 +2566,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PlantId")
.HasMaxLength(50)
@ -2592,6 +2616,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_INV_DATA");
});
@ -2628,8 +2658,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PlantId")
.HasMaxLength(50)
@ -2771,6 +2801,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_MRP_DATE");
});
@ -2813,8 +2849,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasAnnotation("Relational:JsonPropertyName", "materialCode");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)")
.HasAnnotation("Relational:JsonPropertyName", "materialDescription");
b.Property<string>("PlantId")
@ -2920,6 +2956,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_MRP_MONTH");
});
@ -2970,8 +3012,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<decimal?>("OnTimePercentage")
.HasColumnType("decimal(18,2)");
@ -3044,6 +3086,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_MRP_STATE");
});
@ -3083,8 +3131,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PlantId")
.HasMaxLength(50)
@ -3137,6 +3185,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_MRP_WARNING");
});
@ -3189,8 +3243,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("MaterialUnit")
.HasMaxLength(50)
@ -3268,6 +3322,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_PO");
});
@ -3566,8 +3626,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("ModelCategory")
.HasMaxLength(50)
@ -3643,6 +3703,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_PRO_CSCHEDUL");
});
@ -4052,8 +4118,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Models")
.HasMaxLength(50)
@ -4110,6 +4176,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_PRO_HSCHEDUL");
});
@ -4422,6 +4494,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_PRO_PLANING");
});
@ -4731,8 +4809,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("Models")
.HasMaxLength(50)
@ -4785,6 +4863,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_PRO_TSCHEDUL");
});
@ -4833,8 +4917,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PickUpCrossings")
.HasMaxLength(50)
@ -4903,6 +4987,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_RETURN");
});
@ -4939,8 +5029,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("MaterialDescription")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("PlantId")
.HasMaxLength(50)
@ -4993,6 +5083,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_SA_WEEK");
});
@ -5098,6 +5194,12 @@ namespace TaskManager.EntityFramework.Migrations
.IsUnique()
.HasFilter("[Id] IS NOT NULL");
b.HasIndex("ReadState");
b.HasIndex("TaskId");
b.HasIndex("WriteState");
b.ToTable("SUPPLIER_SINV_DATA", (string)null);
});

21
API/Wood.Service/Controllers/CustomLogService.cs

@ -0,0 +1,21 @@
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaskManager.Entity;
using TaskManager.EntityFramework;
namespace Wood.Service.Controllers
{
/// <summary>
/// 读取日志服务
/// </summary>
public class CustomLogService : NormalBaseController<TaskLog>
{
public CustomLogService(JobDbContext context, IServiceProvider builder, IConfiguration configuration, IRepository<TaskLog> repository) : base(context, builder, configuration, repository)
{
}
}
}
Loading…
Cancel
Save