Преглед на файлове

Added Search Log Object, Edited Property Object

master
George Williams преди 5 години
родител
ревизия
cbe5010e29

+ 15
- 0
UnivateProperties_API/Containers/Property/PropertySearch.cs Целия файл

@@ -0,0 +1,15 @@
1
+namespace UnivateProperties_API.Containers.Property
2
+{
3
+    public class PropertySearch
4
+    {
5
+        #region Properties 
6
+        public int UserID { get; set; }
7
+        public string Keyword { get; set; }
8
+        public string SalesType { get; set; }
9
+        public string PropertyType { get; set; }
10
+        public string Province { get; set; }
11
+        public string City { get; set; }
12
+        public string Suburb { get; set; }
13
+        #endregion 
14
+    }
15
+}

+ 5
- 0
UnivateProperties_API/Context/DataContext.cs Целия файл

@@ -9,6 +9,7 @@ using UnivateProperties_API.Model;
9 9
 using UnivateProperties_API.Model.Banks;
10 10
 using UnivateProperties_API.Model.Misc;
11 11
 using UnivateProperties_API.Model.ProcessFlow;
12
+using UnivateProperties_API.Model.Logging;
12 13
 
13 14
 namespace UnivateProperties_API.Context
14 15
 {
@@ -63,6 +64,10 @@ namespace UnivateProperties_API.Context
63 64
         public DbSet<BidItem> BidItems { get; set; }
64 65
         #endregion
65 66
 
67
+        #region Logs
68
+        public DbSet<SearchLog> SearchLogs { get; set; }
69
+        #endregion 
70
+
66 71
         public override int SaveChanges()
67 72
         {
68 73
             foreach(var item in ChangeTracker

+ 15
- 0
UnivateProperties_API/Model/Logging/SearchLog.cs Целия файл

@@ -0,0 +1,15 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Threading.Tasks;
5
+
6
+namespace UnivateProperties_API.Model.Logging
7
+{
8
+    public class SearchLog : BaseEntity
9
+    {
10
+        #region Properties 
11
+        public int? UserID { get; set; }
12
+        public string Search { get; set; }
13
+        #endregion 
14
+    }
15
+}

+ 1
- 0
UnivateProperties_API/Model/Properties/Property.cs Целия файл

@@ -36,6 +36,7 @@ namespace UnivateProperties_API.Model.Properties
36 36
         public int? AgentId { get; set; }
37 37
         [ForeignKey("Agency")]
38 38
         public int? AgencyId { get; set; }
39
+        public int? GCRecord { get; set; }
39 40
 
40 41
         public virtual PropertyType PropertyType { get; set; }
41 42
         public virtual Province Province { get; set; }

Loading…
Отказ
Запис