Browse Source

Added Search Log Object, Edited Property Object

master
George Williams 5 years ago
parent
commit
cbe5010e29

+ 15
- 0
UnivateProperties_API/Containers/Property/PropertySearch.cs View File

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

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

+ 15
- 0
UnivateProperties_API/Model/Logging/SearchLog.cs View File

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

36
         public int? AgentId { get; set; }
36
         public int? AgentId { get; set; }
37
         [ForeignKey("Agency")]
37
         [ForeignKey("Agency")]
38
         public int? AgencyId { get; set; }
38
         public int? AgencyId { get; set; }
39
+        public int? GCRecord { get; set; }
39
 
40
 
40
         public virtual PropertyType PropertyType { get; set; }
41
         public virtual PropertyType PropertyType { get; set; }
41
         public virtual Province Province { get; set; }
42
         public virtual Province Province { get; set; }

Loading…
Cancel
Save