diff options
author | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-06-14 17:35:34 +0200 |
---|---|---|
committer | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-06-14 17:35:34 +0200 |
commit | 789102c9444786d851da2ad1e4566fbff02bf964 (patch) | |
tree | f1e957d8f4fde3d5acf783b98322103a8fcf16db /ApartmentManager/HousingWebApi/Models | |
parent | 8275d584dd49a8e1cd864c21237eab0e2fa22303 (diff) | |
parent | bcb90080d68d04c6ba2a1842d9d8a9177d31e9d0 (diff) |
asd
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/Apartment.cs | 4 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/ApartmentResident.cs | 2 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/Change.cs (renamed from ApartmentManager/HousingWebApi/Models/ApartmentChange.cs) | 7 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/ChangeComment.cs | 2 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/ChangeDocument.cs | 2 |
5 files changed, 8 insertions, 9 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/Apartment.cs b/ApartmentManager/HousingWebApi/Models/Apartment.cs index 9e703bd..c114d09 100644 --- a/ApartmentManager/HousingWebApi/Models/Apartment.cs +++ b/ApartmentManager/HousingWebApi/Models/Apartment.cs @@ -12,7 +12,7 @@ namespace HousingWebApi [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public Apartment() { - ApartmentChanges = new HashSet<ApartmentChange>(); + Changes = new HashSet<Change>(); Defects = new HashSet<Defect>(); PastUsers = new HashSet<PastUser>(); Residents = new HashSet<Resident>(); @@ -36,7 +36,7 @@ namespace HousingWebApi public string PlanPicture { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection<ApartmentChange> ApartmentChanges { get; set; } + public virtual ICollection<Change> Changes { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection<Defect> Defects { get; set; } diff --git a/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs b/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs index 9936a5e..e4d3fed 100644 --- a/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs +++ b/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs @@ -27,6 +27,6 @@ namespace HousingWebApi [StringLength(50)] public string Email { get; set; } - public byte[] Picture { get; set; } + public string Picture { get; set; } } } diff --git a/ApartmentManager/HousingWebApi/Models/ApartmentChange.cs b/ApartmentManager/HousingWebApi/Models/Change.cs index a3308f3..de7eef7 100644 --- a/ApartmentManager/HousingWebApi/Models/ApartmentChange.cs +++ b/ApartmentManager/HousingWebApi/Models/Change.cs @@ -6,17 +6,16 @@ namespace HousingWebApi using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; - [Table("ApartmentChange")] - public partial class ApartmentChange + [Table("Change")] + public partial class Change { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] - public ApartmentChange() + public Change() { ChangeComments = new HashSet<ChangeComment>(); ChangeDocuments = new HashSet<ChangeDocument>(); } - [Key] public int ChangeId { get; set; } public int ApartmentId { get; set; } diff --git a/ApartmentManager/HousingWebApi/Models/ChangeComment.cs b/ApartmentManager/HousingWebApi/Models/ChangeComment.cs index 954d348..83b205f 100644 --- a/ApartmentManager/HousingWebApi/Models/ChangeComment.cs +++ b/ApartmentManager/HousingWebApi/Models/ChangeComment.cs @@ -21,6 +21,6 @@ namespace HousingWebApi public DateTime? Date { get; set; } - public virtual ApartmentChange ApartmentChange { get; set; } + public virtual Change Change { get; set; } } } diff --git a/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs b/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs index 320686f..31b6437 100644 --- a/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs +++ b/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs @@ -17,6 +17,6 @@ namespace HousingWebApi [StringLength(50)] public string Document { get; set; } - public virtual ApartmentChange ApartmentChange { get; set; } + public virtual Change Change { get; set; } } } |