Browse Source

Added Migration

master
Kobus 5 years ago
parent
commit
da72b673b6

+ 1010
- 0
UnivateProperties_API/Migrations/20190909074136_UnitNumber.Designer.cs
File diff suppressed because it is too large
View File


+ 22
- 0
UnivateProperties_API/Migrations/20190909074136_UnitNumber.cs View File

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 View File

19
                 .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
19
                 .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
20
                 .HasAnnotation("Relational:MaxIdentifierLength", 63);
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
                     b.Property<int>("Id")
24
                     b.Property<int>("Id")
25
                         .ValueGeneratedOnAdd();
25
                         .ValueGeneratedOnAdd();
39
                     b.ToTable("Banks");
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
                     b.Property<int>("Id")
44
                     b.Property<int>("Id")
45
                         .ValueGeneratedOnAdd();
45
                         .ValueGeneratedOnAdd();
604
 
604
 
605
                     b.Property<int>("StatusId");
605
                     b.Property<int>("StatusId");
606
 
606
 
607
+                    b.Property<string>("UnitNumber");
608
+
607
                     b.Property<string>("WeekNumber");
609
                     b.Property<string>("WeekNumber");
608
 
610
 
609
                     b.Property<bool>("WeekPlacedForRental");
611
                     b.Property<bool>("WeekPlacedForRental");
798
                     b.ToTable("Users");
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
                         .WithMany()
806
                         .WithMany()
805
                         .HasForeignKey("BankId")
807
                         .HasForeignKey("BankId")
806
                         .OnDelete(DeleteBehavior.Cascade);
808
                         .OnDelete(DeleteBehavior.Cascade);

Loading…
Cancel
Save