Explorar o código

Action: Customer 補上TTIA 相關參數

Jessica Tseng %!s(int64=4) %!d(string=hai) anos
pai
achega
63ae96470c

+ 7 - 0
EVCB_OCPP.Domain/EVCB_OCPP.Domain.csproj

@@ -206,6 +206,10 @@
     <Compile Include="MainDBContextMigrations\202010220132355_Add_TTIA_Service.Designer.cs">
       <DependentUpon>202010220132355_Add_TTIA_Service.cs</DependentUpon>
     </Compile>
+    <Compile Include="MainDBContextMigrations\202010270320421_Add_Customer_TTIA_Fields.cs" />
+    <Compile Include="MainDBContextMigrations\202010270320421_Add_Customer_TTIA_Fields.Designer.cs">
+      <DependentUpon>202010270320421_Add_Customer_TTIA_Fields.cs</DependentUpon>
+    </Compile>
     <Compile Include="MainDBContextMigrations\Configuration.cs" />
     <Compile Include="MeterValueDBContext.cs" />
     <Compile Include="MeterValueDBContextMigrations\201907150814558_Init.cs" />
@@ -370,6 +374,9 @@
     <EmbeddedResource Include="MainDBContextMigrations\202010220132355_Add_TTIA_Service.resx">
       <DependentUpon>202010220132355_Add_TTIA_Service.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="MainDBContextMigrations\202010270320421_Add_Customer_TTIA_Fields.resx">
+      <DependentUpon>202010270320421_Add_Customer_TTIA_Fields.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="MeterValueDBContextMigrations\201907150814558_Init.resx">
       <DependentUpon>201907150814558_Init.cs</DependentUpon>
     </EmbeddedResource>

+ 29 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202010270320421_Add_Customer_TTIA_Fields.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 Add_Customer_TTIA_Fields : IMigrationMetadata
+    {
+        private readonly ResourceManager Resources = new ResourceManager(typeof(Add_Customer_TTIA_Fields));
+        
+        string IMigrationMetadata.Id
+        {
+            get { return "202010270320421_Add_Customer_TTIA_Fields"; }
+        }
+        
+        string IMigrationMetadata.Source
+        {
+            get { return null; }
+        }
+        
+        string IMigrationMetadata.Target
+        {
+            get { return Resources.GetString("Target"); }
+        }
+    }
+}

+ 20 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202010270320421_Add_Customer_TTIA_Fields.cs

@@ -0,0 +1,20 @@
+namespace EVCB_OCPP.Domain.MainDBContextMigrations
+{
+    using System;
+    using System.Data.Entity.Migrations;
+    
+    public partial class Add_Customer_TTIA_Fields : DbMigration
+    {
+        public override void Up()
+        {
+            AddColumn("dbo.Customer", "TTIA_EquipmentProvider", c => c.String(maxLength: 10));
+            AddColumn("dbo.Customer", "TTIA_CustomerId", c => c.Int(nullable: false));
+        }
+        
+        public override void Down()
+        {
+            DropColumn("dbo.Customer", "TTIA_CustomerId");
+            DropColumn("dbo.Customer", "TTIA_EquipmentProvider");
+        }
+    }
+}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 120 - 0
EVCB_OCPP.Domain/MainDBContextMigrations/202010270320421_Add_Customer_TTIA_Fields.resx


+ 3 - 0
EVCB_OCPP.Domain/Models/Database/Customer.cs

@@ -105,7 +105,10 @@ namespace EVCB_OCPP.Domain.Models.Database
 
         public bool EnableTTIA { set; get; }
 
+        [StringLength(10)]
+        public string TTIA_EquipmentProvider { set; get; }
 
+        public int TTIA_CustomerId { set; get; }
 
 
         public Customer()

+ 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("56c8ec4")]
+[assembly: AssemblyInformationalVersion("1f1f448")]

+ 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("56c8ec4")]
+[assembly: AssemblyInformationalVersion("1f1f448")]

+ 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("56c8ec4")]
+[assembly: AssemblyInformationalVersion("1f1f448")]

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

@@ -33,4 +33,4 @@ using System.Runtime.InteropServices;
 // [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyVersion("0.1.0.0")]
 [assembly: AssemblyFileVersion("0.1.0.0")]
-[assembly: AssemblyInformationalVersion("56c8ec4")]
+[assembly: AssemblyInformationalVersion("1f1f448")]

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio