Samples Reappend
This commit is contained in:
71
Samples/MachineJob/Migrations/20230212103438_InitialCreate.Designer.cs
generated
Normal file
71
Samples/MachineJob/Migrations/20230212103438_InitialCreate.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using MachineJob;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Modbus.Net.Modbus.Test.Migrations
|
||||
{
|
||||
[DbContext(typeof(DatabaseWriteContext))]
|
||||
[Migration("20230212103438_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("Modbus.Net.Modbus.Test.DatabaseWriteEntity", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("UpdateTime")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<double?>("Value1")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value10")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value2")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value3")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value4")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value5")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value6")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value7")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value8")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value9")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DatabaseWrites");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Modbus.Net.Modbus.Test.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterDatabase()
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DatabaseWrites",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
Value1 = table.Column<double>(type: "double", nullable: true),
|
||||
Value2 = table.Column<double>(type: "double", nullable: true),
|
||||
Value3 = table.Column<double>(type: "double", nullable: true),
|
||||
Value4 = table.Column<double>(type: "double", nullable: true),
|
||||
Value5 = table.Column<double>(type: "double", nullable: true),
|
||||
Value6 = table.Column<double>(type: "double", nullable: true),
|
||||
Value7 = table.Column<double>(type: "double", nullable: true),
|
||||
Value8 = table.Column<double>(type: "double", nullable: true),
|
||||
Value9 = table.Column<double>(type: "double", nullable: true),
|
||||
Value10 = table.Column<double>(type: "double", nullable: true),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DatabaseWrites", x => x.Id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "DatabaseWrites");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using MachineJob;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Modbus.Net.Modbus.Test.Migrations
|
||||
{
|
||||
[DbContext(typeof(DatabaseWriteContext))]
|
||||
partial class DatabaseWriteContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("Modbus.Net.Modbus.Test.DatabaseWriteEntity", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("UpdateTime")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<double?>("Value1")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value10")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value2")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value3")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value4")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value5")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value6")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value7")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value8")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double?>("Value9")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DatabaseWrites");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user