MachineJob Fix

This commit is contained in:
luosheng
2023-02-20 17:29:23 +08:00
parent d99cad0d77
commit 052e91cce2
4 changed files with 9 additions and 5 deletions

View File

@@ -9,6 +9,10 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.3" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" /> <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" /> <PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
</ItemGroup> </ItemGroup>

View File

@@ -8,7 +8,7 @@ using MachineJob;
#nullable disable #nullable disable
namespace Modbus.Net.Modbus.Test.Migrations namespace MachineJob.Migrations
{ {
[DbContext(typeof(DatabaseWriteContext))] [DbContext(typeof(DatabaseWriteContext))]
[Migration("20230212103438_InitialCreate")] [Migration("20230212103438_InitialCreate")]
@@ -22,7 +22,7 @@ namespace Modbus.Net.Modbus.Test.Migrations
.HasAnnotation("ProductVersion", "7.0.2") .HasAnnotation("ProductVersion", "7.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64); .HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Modbus.Net.Modbus.Test.DatabaseWriteEntity", b => modelBuilder.Entity("MachineJob.DatabaseWriteEntity", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable #nullable disable
namespace Modbus.Net.Modbus.Test.Migrations namespace MachineJob.Migrations
{ {
/// <inheritdoc /> /// <inheritdoc />
public partial class InitialCreate : Migration public partial class InitialCreate : Migration

View File

@@ -7,7 +7,7 @@ using MachineJob;
#nullable disable #nullable disable
namespace Modbus.Net.Modbus.Test.Migrations namespace MachineJob.Migrations
{ {
[DbContext(typeof(DatabaseWriteContext))] [DbContext(typeof(DatabaseWriteContext))]
partial class DatabaseWriteContextModelSnapshot : ModelSnapshot partial class DatabaseWriteContextModelSnapshot : ModelSnapshot
@@ -19,7 +19,7 @@ namespace Modbus.Net.Modbus.Test.Migrations
.HasAnnotation("ProductVersion", "7.0.2") .HasAnnotation("ProductVersion", "7.0.2")
.HasAnnotation("Relational:MaxIdentifierLength", 64); .HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Modbus.Net.Modbus.Test.DatabaseWriteEntity", b => modelBuilder.Entity("MachineJob.DatabaseWriteEntity", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()