Browse Source

Add annotation

master
Kobus 6 years ago
parent
commit
ad9dee0cf9
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      UnivateProperties_API/Model/Properties/Property.cs

+ 4
- 0
UnivateProperties_API/Model/Properties/Property.cs View File

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

Loading…
Cancel
Save