aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Adamonis <dona0169@edu.easj.dk>2017-05-24 03:05:14 +0200
committerDonatas Adamonis <dona0169@edu.easj.dk>2017-05-24 03:05:14 +0200
commitde05092ce474a8727ed2ec575822c6a43f50af8c (patch)
treebe2d297acd59aeac0060b430e793a44af1ae0d5a /ApartmentManager/HousingWebApi/Models
parent763d01f938ccc1b2b3c35ad7ad45bc3626113a3e (diff)
defect view new defects
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r--ApartmentManager/HousingWebApi/Models/Apartment.cs1
-rw-r--r--ApartmentManager/HousingWebApi/Models/Defect.cs1
-rw-r--r--ApartmentManager/HousingWebApi/Models/DefectComment.cs5
-rw-r--r--ApartmentManager/HousingWebApi/Models/DefectPicture.cs2
-rw-r--r--ApartmentManager/HousingWebApi/Models/Resident.cs1
-rw-r--r--ApartmentManager/HousingWebApi/Models/User.cs1
6 files changed, 2 insertions, 9 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/Apartment.cs b/ApartmentManager/HousingWebApi/Models/Apartment.cs
index 1aa381d..9e703bd 100644
--- a/ApartmentManager/HousingWebApi/Models/Apartment.cs
+++ b/ApartmentManager/HousingWebApi/Models/Apartment.cs
@@ -33,7 +33,6 @@ namespace HousingWebApi
[StringLength(100)]
public string Address { get; set; }
-
public string PlanPicture { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
diff --git a/ApartmentManager/HousingWebApi/Models/Defect.cs b/ApartmentManager/HousingWebApi/Models/Defect.cs
index 5200124..07ed227 100644
--- a/ApartmentManager/HousingWebApi/Models/Defect.cs
+++ b/ApartmentManager/HousingWebApi/Models/Defect.cs
@@ -16,7 +16,6 @@ namespace HousingWebApi
DefectPictures = new HashSet<DefectPicture>();
}
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
public int DefectId { get; set; }
public int ApartmentId { get; set; }
diff --git a/ApartmentManager/HousingWebApi/Models/DefectComment.cs b/ApartmentManager/HousingWebApi/Models/DefectComment.cs
index b05f790..c65bac2 100644
--- a/ApartmentManager/HousingWebApi/Models/DefectComment.cs
+++ b/ApartmentManager/HousingWebApi/Models/DefectComment.cs
@@ -10,12 +10,11 @@ namespace HousingWebApi
public partial class DefectComment
{
[Key]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
- public int PictureId { get; set; }
+ public int CommentId { get; set; }
public int DefectId { get; set; }
- public string Picture { get; set; }
+ public string Comment { get; set; }
public virtual Defect Defect { get; set; }
}
diff --git a/ApartmentManager/HousingWebApi/Models/DefectPicture.cs b/ApartmentManager/HousingWebApi/Models/DefectPicture.cs
index 5d27ba3..faab22d 100644
--- a/ApartmentManager/HousingWebApi/Models/DefectPicture.cs
+++ b/ApartmentManager/HousingWebApi/Models/DefectPicture.cs
@@ -10,12 +10,10 @@ namespace HousingWebApi
public partial class DefectPicture
{
[Key]
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
public int PictureId { get; set; }
public int DefectId { get; set; }
- [StringLength(50)]
public string Picture { get; set; }
public virtual Defect Defect { get; set; }
diff --git a/ApartmentManager/HousingWebApi/Models/Resident.cs b/ApartmentManager/HousingWebApi/Models/Resident.cs
index 7c0fa24..4ed302c 100644
--- a/ApartmentManager/HousingWebApi/Models/Resident.cs
+++ b/ApartmentManager/HousingWebApi/Models/Resident.cs
@@ -28,7 +28,6 @@ namespace HousingWebApi
[StringLength(50)]
public string Email { get; set; }
-
public string Picture { get; set; }
public virtual Apartment Apartment { get; set; }
diff --git a/ApartmentManager/HousingWebApi/Models/User.cs b/ApartmentManager/HousingWebApi/Models/User.cs
index 3ff1099..b8762ca 100644
--- a/ApartmentManager/HousingWebApi/Models/User.cs
+++ b/ApartmentManager/HousingWebApi/Models/User.cs
@@ -36,7 +36,6 @@ namespace HousingWebApi
[StringLength(50)]
public string Email { get; set; }
-
public string Picture { get; set; }
[Column(TypeName = "date")]