diff options
author | marcinzelent <marcin@zelent.net> | 2017-05-15 11:58:39 +0200 |
---|---|---|
committer | marcinzelent <marcin@zelent.net> | 2017-05-15 11:58:39 +0200 |
commit | 40d66d9a08a58c3f684fe43e75da5f833c7bff4a (patch) | |
tree | d55312a1d418426150824651e0e4c76a244f1274 /ApartmentManager/HousingWebApi/Models | |
parent | 82cfa39dd0abdf1d25255bd3d9f6fbb35477a37c (diff) |
Cleaned up.
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/AllResident.cs | 15 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/Apartment.cs | 45 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/Defect.cs | 46 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/PastContractOwner.cs | 17 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/Resident.cs | 37 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/ResidentList.cs | 20 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Models/User.cs | 64 |
7 files changed, 0 insertions, 244 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/AllResident.cs b/ApartmentManager/HousingWebApi/Models/AllResident.cs deleted file mode 100644 index 655ee84..0000000 --- a/ApartmentManager/HousingWebApi/Models/AllResident.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace HousingWebApi -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class AllResident - { - [Key] - [StringLength(20)] - public string FirstName { get; set; } - } -} diff --git a/ApartmentManager/HousingWebApi/Models/Apartment.cs b/ApartmentManager/HousingWebApi/Models/Apartment.cs deleted file mode 100644 index 7481344..0000000 --- a/ApartmentManager/HousingWebApi/Models/Apartment.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace HousingWebApi -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class Apartment - { - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] - public Apartment() - { - Defects = new HashSet<Defect>(); - Residents = new HashSet<Resident>(); - } - - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int ApartmentNumber { get; set; } - - public decimal Size { get; set; } - - public int NumberOfRooms { get; set; } - - [StringLength(10)] - public string MonthlyCharge { get; set; } - - public int? Floor { get; set; } - - [StringLength(50)] - public string Address { get; set; } - - [StringLength(200)] - public string PlanPicture { get; set; } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection<Defect> Defects { get; set; } - - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection<Resident> Residents { get; set; } - - public virtual User User { get; set; } - } -} diff --git a/ApartmentManager/HousingWebApi/Models/Defect.cs b/ApartmentManager/HousingWebApi/Models/Defect.cs deleted file mode 100644 index b439078..0000000 --- a/ApartmentManager/HousingWebApi/Models/Defect.cs +++ /dev/null @@ -1,46 +0,0 @@ -namespace HousingWebApi -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class Defect - { - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int DefectNumber { get; set; } - - public int ApartmentNr { get; set; } - - [Required] - [StringLength(50)] - public string Name { get; set; } - - [Column(TypeName = "date")] - public DateTime DateUploaded { get; set; } - - [Required] - [StringLength(200)] - public string Picture { get; set; } - - [StringLength(200)] - public string Picture2 { get; set; } - - [StringLength(200)] - public string Picture3 { get; set; } - - [Column(TypeName = "text")] - [Required] - public string Description { get; set; } - - [Column(TypeName = "text")] - public string Comment { get; set; } - - [StringLength(10)] - public string Status { get; set; } - - public virtual Apartment Apartment { get; set; } - } -} diff --git a/ApartmentManager/HousingWebApi/Models/PastContractOwner.cs b/ApartmentManager/HousingWebApi/Models/PastContractOwner.cs deleted file mode 100644 index 273952a..0000000 --- a/ApartmentManager/HousingWebApi/Models/PastContractOwner.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace HousingWebApi -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class PastContractOwner - { - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int Id { get; set; } - - [StringLength(10)] - public string ApartmentNr { get; set; } - } -} diff --git a/ApartmentManager/HousingWebApi/Models/Resident.cs b/ApartmentManager/HousingWebApi/Models/Resident.cs deleted file mode 100644 index 319a697..0000000 --- a/ApartmentManager/HousingWebApi/Models/Resident.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace HousingWebApi -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class Resident - { - [Key] - public int ResidentNr { get; set; } - - public int ApartmentNr { get; set; } - - [Required] - [StringLength(20)] - public string FirstName { get; set; } - - [Required] - [StringLength(20)] - public string LastName { get; set; } - - [Column(TypeName = "date")] - public DateTime? BirthDate { get; set; } - - public int? Phone { get; set; } - - [StringLength(30)] - public string Email { get; set; } - - [StringLength(220)] - public string Picture { get; set; } - - public virtual Apartment Apartment { get; set; } - } -} diff --git a/ApartmentManager/HousingWebApi/Models/ResidentList.cs b/ApartmentManager/HousingWebApi/Models/ResidentList.cs deleted file mode 100644 index 9423bc1..0000000 --- a/ApartmentManager/HousingWebApi/Models/ResidentList.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace HousingWebApi -{ - public class ResidentList - { - public int ResidentNr { get; set; } - public int ApartmentNr { get; set; } - public string FirstName { get; set; } - public string LastName { get; set; } - public DateTime? BirthDate { get; set; } - public int? Phone { get; set; } - public string Email { get; set; } - public string Picture { get; set; } - - } -}
\ No newline at end of file diff --git a/ApartmentManager/HousingWebApi/Models/User.cs b/ApartmentManager/HousingWebApi/Models/User.cs deleted file mode 100644 index e260ede..0000000 --- a/ApartmentManager/HousingWebApi/Models/User.cs +++ /dev/null @@ -1,64 +0,0 @@ -namespace HousingWebApi -{ - using System; - using System.Collections.Generic; - using System.ComponentModel.DataAnnotations; - using System.ComponentModel.DataAnnotations.Schema; - using System.Data.Entity.Spatial; - - public partial class User - { - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.None)] - public int ApartmentNr { get; set; } - - [Required] - [StringLength(15)] - public string Username { get; set; } - - [Required] - [StringLength(15)] - public string Password { get; set; } - - [Required] - [StringLength(1)] - public string Type { get; set; } - - [Required] - [StringLength(20)] - public string FirstName { get; set; } - - [Required] - [StringLength(20)] - public string LastName { get; set; } - - [Column(TypeName = "date")] - public DateTime? BirthDate { get; set; } - - [StringLength(12)] - public string Phone { get; set; } - - [StringLength(30)] - public string Email { get; set; } - - [Column(TypeName = "image")] - public byte[] Picture { get; set; } - - [StringLength(20)] - public string SecondName { get; set; } - - [StringLength(20)] - public string SecondLastName { get; set; } - - [Column(TypeName = "date")] - public DateTime? SecondBirthDate { get; set; } - - [StringLength(12)] - public string SecondPhone { get; set; } - - [StringLength(30)] - public string SecondEmail { get; set; } - - public virtual Apartment Apartment { get; set; } - } -} |