优化设备端物模型属性表设计和函数构建逻辑
This commit is contained in:
parent
fb5c9eca52
commit
c324a12f75
3847
src/JiShe.IoT.EntityFrameworkCore/Migrations/20251218020524_udpate202512181004.Designer.cs
generated
Normal file
3847
src/JiShe.IoT.EntityFrameworkCore/Migrations/20251218020524_udpate202512181004.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,112 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace JiShe.IoT.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class udpate202512181004 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "SkipNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TakeNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ParsingSequence",
|
||||||
|
table: "ServiceProDeviceThingModelManagement");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "NativeSkipNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "正序跳过数量");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "NativeTakeNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "正序获取数量");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ParsingSequence",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "解析顺序,1234或者3412(高低反转)");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ReversalSkipNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
comment: "反转跳过数量");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ReversalTakeNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
comment: "反转获取数量");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NativeSkipNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "NativeTakeNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ParsingSequence",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ReversalSkipNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ReversalTakeNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "SkipNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "跳过数量");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "TakeNumber",
|
||||||
|
table: "ServiceProDeviceThingModelPropertylInfo",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "获取数量");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ParsingSequence",
|
||||||
|
table: "ServiceProDeviceThingModelManagement",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "解析顺序,1234或者3412(高低位反转)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3846
src/JiShe.IoT.EntityFrameworkCore/Migrations/20251218082708_udpate202512181626.Designer.cs
generated
Normal file
3846
src/JiShe.IoT.EntityFrameworkCore/Migrations/20251218082708_udpate202512181626.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace JiShe.IoT.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class udpate202512181626 : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "FunctionScript",
|
||||||
|
table: "ServiceProDeviceThingModelManagement",
|
||||||
|
type: "text",
|
||||||
|
nullable: true,
|
||||||
|
comment: "脚本函数体",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldComment: "脚本函数体")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4")
|
||||||
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.UpdateData(
|
||||||
|
table: "ServiceProDeviceThingModelManagement",
|
||||||
|
keyColumn: "FunctionScript",
|
||||||
|
keyValue: null,
|
||||||
|
column: "FunctionScript",
|
||||||
|
value: "");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "FunctionScript",
|
||||||
|
table: "ServiceProDeviceThingModelManagement",
|
||||||
|
type: "text",
|
||||||
|
nullable: false,
|
||||||
|
comment: "脚本函数体",
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "text",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "脚本函数体")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4")
|
||||||
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -884,7 +884,6 @@ namespace JiShe.IoT.Migrations
|
|||||||
.HasComment("函数解析标记,默认为false, 不能解析");
|
.HasComment("函数解析标记,默认为false, 不能解析");
|
||||||
|
|
||||||
b.Property<string>("FunctionScript")
|
b.Property<string>("FunctionScript")
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("text")
|
.HasColumnType("text")
|
||||||
.HasComment("脚本函数体");
|
.HasComment("脚本函数体");
|
||||||
|
|
||||||
@ -924,10 +923,6 @@ namespace JiShe.IoT.Migrations
|
|||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("旧系统授权最后修改者Id");
|
.HasComment("旧系统授权最后修改者Id");
|
||||||
|
|
||||||
b.Property<int>("ParsingSequence")
|
|
||||||
.HasColumnType("int")
|
|
||||||
.HasComment("解析顺序,1234或者3412(高低位反转)");
|
|
||||||
|
|
||||||
b.Property<string>("Remark")
|
b.Property<string>("Remark")
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
.HasComment("备注");
|
.HasComment("备注");
|
||||||
@ -1042,6 +1037,14 @@ namespace JiShe.IoT.Migrations
|
|||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<int>("NativeSkipNumber")
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("正序跳过数量");
|
||||||
|
|
||||||
|
b.Property<int>("NativeTakeNumber")
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("正序获取数量");
|
||||||
|
|
||||||
b.Property<int?>("OSACreatorId")
|
b.Property<int?>("OSACreatorId")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("旧系统授权创建者Id");
|
.HasComment("旧系统授权创建者Id");
|
||||||
@ -1054,13 +1057,21 @@ namespace JiShe.IoT.Migrations
|
|||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("旧系统授权最后修改者Id");
|
.HasComment("旧系统授权最后修改者Id");
|
||||||
|
|
||||||
|
b.Property<int>("ParsingSequence")
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("解析顺序,1234或者3412(高低反转)");
|
||||||
|
|
||||||
b.Property<string>("Remark")
|
b.Property<string>("Remark")
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
.HasComment("备注");
|
.HasComment("备注");
|
||||||
|
|
||||||
b.Property<int>("SkipNumber")
|
b.Property<int?>("ReversalSkipNumber")
|
||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("跳过数量");
|
.HasComment("反转跳过数量");
|
||||||
|
|
||||||
|
b.Property<int?>("ReversalTakeNumber")
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("反转获取数量");
|
||||||
|
|
||||||
b.Property<string>("StandardFieldDisplayName")
|
b.Property<string>("StandardFieldDisplayName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
@ -1080,10 +1091,6 @@ namespace JiShe.IoT.Migrations
|
|||||||
.HasColumnType("varchar(20)")
|
.HasColumnType("varchar(20)")
|
||||||
.HasComment("标准物模型字段值类型");
|
.HasComment("标准物模型字段值类型");
|
||||||
|
|
||||||
b.Property<int>("TakeNumber")
|
|
||||||
.HasColumnType("int")
|
|
||||||
.HasComment("获取数量");
|
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("char(36)")
|
.HasColumnType("char(36)")
|
||||||
.HasColumnName("TenantId")
|
.HasColumnName("TenantId")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user