diff options
author | Paulius Klezys <paul4618@edu.easj.dk> | 2017-05-12 13:05:34 +0200 |
---|---|---|
committer | Paulius Klezys <paul4618@edu.easj.dk> | 2017-05-12 13:05:34 +0200 |
commit | 2a192ba79d69741c947f400a4a4d9c80bf5d3d05 (patch) | |
tree | d7f68241e42aec08903f98b9c10197b4ebb8590c /ApartmentManager/HousingWebApi/Models | |
parent | a59f6e6d3163d2c83ebfcc9c5b5da2d2f2c114c1 (diff) | |
parent | 0163e5e6b85907140d70051cf96c32d1dfe9c310 (diff) |
Ze best čeindž eva
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
5 files changed, 27 insertions, 9 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/AllResident.cs b/ApartmentManager/HousingWebApi/Models/AllResident.cs new file mode 100644 index 0000000..655ee84 --- /dev/null +++ b/ApartmentManager/HousingWebApi/Models/AllResident.cs @@ -0,0 +1,15 @@ +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 index 16d884d..7481344 100644 --- a/ApartmentManager/HousingWebApi/Models/Apartment.cs +++ b/ApartmentManager/HousingWebApi/Models/Apartment.cs @@ -31,6 +31,9 @@ namespace HousingWebApi [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; } diff --git a/ApartmentManager/HousingWebApi/Models/Defect.cs b/ApartmentManager/HousingWebApi/Models/Defect.cs index 4336393..b439078 100644 --- a/ApartmentManager/HousingWebApi/Models/Defect.cs +++ b/ApartmentManager/HousingWebApi/Models/Defect.cs @@ -21,15 +21,15 @@ namespace HousingWebApi [Column(TypeName = "date")] public DateTime DateUploaded { get; set; } - [Column(TypeName = "image")] [Required] - public byte[] Picture { get; set; } + [StringLength(200)] + public string Picture { get; set; } - [Column(TypeName = "image")] - public byte[] Picture2 { get; set; } + [StringLength(200)] + public string Picture2 { get; set; } - [Column(TypeName = "image")] - public byte[] Picture3 { get; set; } + [StringLength(200)] + public string Picture3 { get; set; } [Column(TypeName = "text")] [Required] diff --git a/ApartmentManager/HousingWebApi/Models/Resident.cs b/ApartmentManager/HousingWebApi/Models/Resident.cs index a34cf80..319a697 100644 --- a/ApartmentManager/HousingWebApi/Models/Resident.cs +++ b/ApartmentManager/HousingWebApi/Models/Resident.cs @@ -29,8 +29,8 @@ namespace HousingWebApi [StringLength(30)] public string Email { get; set; } - [Column(TypeName = "image")] - public byte[] Picture { 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 index 1fd4b30..9423bc1 100644 --- a/ApartmentManager/HousingWebApi/Models/ResidentList.cs +++ b/ApartmentManager/HousingWebApi/Models/ResidentList.cs @@ -14,7 +14,7 @@ namespace HousingWebApi public DateTime? BirthDate { get; set; } public int? Phone { get; set; } public string Email { get; set; } - public byte[] Picture { get; set; } + public string Picture { get; set; } } }
\ No newline at end of file |