ソースを参照

Added Address & Extra Individual

master
LeneS 5年前
コミット
b57d1d0be6

+ 2
- 0
UnivateProperties_API/Context/DataContext.cs ファイルの表示

@@ -6,6 +6,7 @@ using UnivateProperties_API.Model.Region;
6 6
 using UnivateProperties_API.Model.Timeshare;
7 7
 using System.Linq;
8 8
 using UnivateProperties_API.Model;
9
+using UnivateProperties_API.Model.Misc;
9 10
 
10 11
 namespace UnivateProperties_API.Context
11 12
 {
@@ -21,6 +22,7 @@ namespace UnivateProperties_API.Context
21 22
         public virtual DbSet<Agent> Agents { get; set; }
22 23
         public virtual DbSet<User> Users { get; set; }
23 24
         public virtual DbSet<Individual> Individuals { get; set; }
25
+        public virtual DbSet<Address> Addresses { get; set; }
24 26
         #endregion User
25 27
 
26 28
         #region Communication

+ 16
- 0
UnivateProperties_API/Model/Misc/Address.cs ファイルの表示

@@ -0,0 +1,16 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Threading.Tasks;
5
+
6
+namespace UnivateProperties_API.Model.Misc
7
+{
8
+    public class Address : BaseEntity
9
+    {
10
+        public string StreetNumber { get; set; }
11
+        public string Street { get; set; }
12
+        public string Suburb { get; set; }
13
+        public string City { get; set; }
14
+        public string PostalCode { get; set; }
15
+    }
16
+}

+ 8
- 1
UnivateProperties_API/Model/Users/Individual.cs ファイルの表示

@@ -1,6 +1,7 @@
1 1
 using System.Collections.Generic;
2 2
 using System.ComponentModel.DataAnnotations;
3 3
 using System.ComponentModel.DataAnnotations.Schema;
4
+using UnivateProperties_API.Model.Misc;
4 5
 
5 6
 namespace UnivateProperties_API.Model.Users
6 7
 {
@@ -14,7 +15,13 @@ namespace UnivateProperties_API.Model.Users
14 15
         #endregion Constructor
15 16
 
16 17
         #region Properties
17
-        
18
+        public string IdNumber { get; set; }
19
+        public string CompanyRegNumber { get; set; }
20
+        public string MaritalStatus { get; set; }
21
+        public int? AddressId { get; set; }
22
+        public string IncomeTaxNumber { get; set; }
23
+        public virtual Address Address { get; set; }
24
+
18 25
         #endregion Properties
19 26
     }
20 27
 }

読み込み中…
キャンセル
保存