Browse Source

2020/04/17 Jessica
Actions
1. Rename MachineConfiguration

Jessica.Tseng 5 years ago
parent
commit
6fce7a2f55

+ 8 - 1
EVCB_OCPP.Domain/EVCB_OCPP.Domain.csproj

@@ -170,6 +170,10 @@
     <Compile Include="MainDBContextMigrations\202004170135337_RemoveTransactionId_RenameFewField_AddMachineOperateRecord.Designer.cs">
       <DependentUpon>202004170135337_RemoveTransactionId_RenameFewField_AddMachineOperateRecord.cs</DependentUpon>
     </Compile>
+    <Compile Include="MainDBContextMigrations\202004170157424_Rename_MachineConfiguration.cs" />
+    <Compile Include="MainDBContextMigrations\202004170157424_Rename_MachineConfiguration.Designer.cs">
+      <DependentUpon>202004170157424_Rename_MachineConfiguration.cs</DependentUpon>
+    </Compile>
     <Compile Include="MainDBContextMigrations\Configuration.cs" />
     <Compile Include="MeterValueDBContext.cs" />
     <Compile Include="MeterValueDBContextMigrations\201907150814558_Init.cs" />
@@ -200,7 +204,7 @@
     <Compile Include="Models\Database\CustomerMachineComponent.cs" />
     <Compile Include="Models\Database\Machine.cs" />
     <Compile Include="Models\Database\MachineComponent.cs" />
-    <Compile Include="Models\Database\MachineConfigure.cs" />
+    <Compile Include="Models\Database\MachineConfiguration.cs" />
     <Compile Include="Models\Database\MachineConnectionLog.cs" />
     <Compile Include="Models\Database\MachineError.cs" />
     <Compile Include="Models\Database\MachineModel.cs" />
@@ -310,6 +314,9 @@
     <EmbeddedResource Include="MainDBContextMigrations\202004170135337_RemoveTransactionId_RenameFewField_AddMachineOperateRecord.resx">
       <DependentUpon>202004170135337_RemoveTransactionId_RenameFewField_AddMachineOperateRecord.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="MainDBContextMigrations\202004170157424_Rename_MachineConfiguration.resx">
+      <DependentUpon>202004170157424_Rename_MachineConfiguration.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="MeterValueDBContextMigrations\201907150814558_Init.resx">
       <DependentUpon>201907150814558_Init.cs</DependentUpon>
     </EmbeddedResource>

+ 1 - 1
EVCB_OCPP.Domain/MainDBContext.cs

@@ -45,7 +45,7 @@
 
         public virtual DbSet<MachineComponent> MachineComponent { get; set; }
 
-        public virtual DbSet<MachineConfigure> MachineConfigure { get; set; }
+        public virtual DbSet<MachineConfiguration> MachineConfigure { get; set; }
 
         public virtual DbSet<MachineError> MachineError { get; set; }
 

+ 29 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202004170157424_Rename_MachineConfiguration.Designer.cs

@@ -0,0 +1,29 @@
+// <auto-generated />
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System.CodeDom.Compiler;
+    using System.Data.Entity.Migrations;
+    using System.Data.Entity.Migrations.Infrastructure;
+    using System.Resources;
+    
+    [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")]
+    public sealed partial class Rename_MachineConfiguration : IMigrationMetadata
+    {
+        private readonly ResourceManager Resources = new ResourceManager(typeof(Rename_MachineConfiguration));
+        
+        string IMigrationMetadata.Id
+        {
+            get { return "202004170157424_Rename_MachineConfiguration"; }
+        }
+        
+        string IMigrationMetadata.Source
+        {
+            get { return null; }
+        }
+        
+        string IMigrationMetadata.Target
+        {
+            get { return Resources.GetString("Target"); }
+        }
+    }
+}

+ 18 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202004170157424_Rename_MachineConfiguration.cs

@@ -0,0 +1,18 @@
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System;
+    using System.Data.Entity.Migrations;
+    
+    public partial class Rename_MachineConfiguration : DbMigration
+    {
+        public override void Up()
+        {
+            RenameTable(name: "dbo.MachineConfigures", newName: "MachineConfigurations");
+        }
+        
+        public override void Down()
+        {
+            RenameTable(name: "dbo.MachineConfigurations", newName: "MachineConfigures");
+        }
+    }
+}

File diff suppressed because it is too large
+ 120 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202004170157424_Rename_MachineConfiguration.resx


+ 2 - 2
EVCB_OCPP.Domain/Models/Database/MachineConfigure.cs → EVCB_OCPP.Domain/Models/Database/MachineConfiguration.cs

@@ -8,9 +8,9 @@ using System.Threading.Tasks;
 
 namespace EVCB_OCPP.Domain.Models.Database
 {
-    public class MachineConfigure
+    public class MachineConfiguration
     {
-        public MachineConfigure()
+        public MachineConfiguration()
         {
             Exists = false;
             ReadOnly = true;

+ 1 - 1
EVCB_OCPP.Domain/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
 
-[assembly: AssemblyInformationalVersion("04817db")]
+[assembly: AssemblyInformationalVersion("6ec5e60")]

+ 1 - 1
EVCB_OCPP.MailService/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
 
-[assembly: AssemblyInformationalVersion("04817db")]
+[assembly: AssemblyInformationalVersion("6ec5e60")]

+ 1 - 1
EVCB_OCPP.Packet/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
 
-[assembly: AssemblyInformationalVersion("04817db")]
+[assembly: AssemblyInformationalVersion("6ec5e60")]

Some files were not shown because too many files changed in this diff