Parcourir la source

Added Migration

master
Kobus il y a 5 ans
Parent
révision
da72b673b6

+ 1010
- 0
UnivateProperties_API/Migrations/20190909074136_UnitNumber.Designer.cs
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 22
- 0
UnivateProperties_API/Migrations/20190909074136_UnitNumber.cs Voir le fichier

@@ -0,0 +1,22 @@
1
+using Microsoft.EntityFrameworkCore.Migrations;
2
+
3
+namespace UnivateProperties_API.Migrations
4
+{
5
+    public partial class UnitNumber : Migration
6
+    {
7
+        protected override void Up(MigrationBuilder migrationBuilder)
8
+        {
9
+            migrationBuilder.AddColumn<string>(
10
+                name: "UnitNumber",
11
+                table: "Weeks",
12
+                nullable: true);
13
+        }
14
+
15
+        protected override void Down(MigrationBuilder migrationBuilder)
16
+        {
17
+            migrationBuilder.DropColumn(
18
+                name: "UnitNumber",
19
+                table: "Weeks");
20
+        }
21
+    }
22
+}

+ 6
- 4
UnivateProperties_API/Migrations/DataContextModelSnapshot.cs Voir le fichier

@@ -19,7 +19,7 @@ namespace UnivateProperties_API.Migrations
19 19
                 .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
20 20
                 .HasAnnotation("Relational:MaxIdentifierLength", 63);
21 21
 
22
-            modelBuilder.Entity("UnivateProperties_API.Model.Bank.Bank", b =>
22
+            modelBuilder.Entity("UnivateProperties_API.Model.Banks.Bank", b =>
23 23
                 {
24 24
                     b.Property<int>("Id")
25 25
                         .ValueGeneratedOnAdd();
@@ -39,7 +39,7 @@ namespace UnivateProperties_API.Migrations
39 39
                     b.ToTable("Banks");
40 40
                 });
41 41
 
42
-            modelBuilder.Entity("UnivateProperties_API.Model.Bank.BankAccount", b =>
42
+            modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
43 43
                 {
44 44
                     b.Property<int>("Id")
45 45
                         .ValueGeneratedOnAdd();
@@ -604,6 +604,8 @@ namespace UnivateProperties_API.Migrations
604 604
 
605 605
                     b.Property<int>("StatusId");
606 606
 
607
+                    b.Property<string>("UnitNumber");
608
+
607 609
                     b.Property<string>("WeekNumber");
608 610
 
609 611
                     b.Property<bool>("WeekPlacedForRental");
@@ -798,9 +800,9 @@ namespace UnivateProperties_API.Migrations
798 800
                     b.ToTable("Users");
799 801
                 });
800 802
 
801
-            modelBuilder.Entity("UnivateProperties_API.Model.Bank.BankAccount", b =>
803
+            modelBuilder.Entity("UnivateProperties_API.Model.Banks.BankAccount", b =>
802 804
                 {
803
-                    b.HasOne("UnivateProperties_API.Model.Bank.Bank", "Bank")
805
+                    b.HasOne("UnivateProperties_API.Model.Banks.Bank", "Bank")
804 806
                         .WithMany()
805 807
                         .HasForeignKey("BankId")
806 808
                         .OnDelete(DeleteBehavior.Cascade);

Chargement…
Annuler
Enregistrer