Pārlūkot izejas kodu

Add annotation

master
Kobus 5 gadus atpakaļ
vecāks
revīzija
ad9dee0cf9
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      UnivateProperties_API/Model/Properties/Property.cs

+ 4
- 0
UnivateProperties_API/Model/Properties/Property.cs Parādīt failu

@@ -28,9 +28,13 @@ namespace UnivateProperties_API.Model.Properties
28 28
         public int CityId { get; set; }
29 29
         public int ProvinceId { get; set; }
30 30
         public bool Published { get; set; }
31
+        [ForeignKey("Status")]
31 32
         public int? StatusId { get; set; }
33
+        [ForeignKey("Owner")]
32 34
         public int? OwnerId { get; set; }
35
+        [ForeignKey("Agent")]
33 36
         public int? AgentId { get; set; }
37
+        [ForeignKey("Agency")]
34 38
         public int? AgencyId { get; set; }
35 39
 
36 40
         public virtual PropertyType PropertyType { get; set; }

Notiek ielāde…
Atcelt
Saglabāt