aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Adamonis <dona0169@edu.easj.dk>2017-05-23 12:05:15 +0200
committerDonatas Adamonis <dona0169@edu.easj.dk>2017-05-23 12:05:15 +0200
commit0a0825a11dabbc9e3425d055d239088b09f08b48 (patch)
treedb6339fec9cda23cd013b8e3d6e7112d7fc2c44a /ApartmentManager/HousingWebApi/Models
parent6f42f24e0d6d3a42fd9a852ee9ab02bf9b81f449 (diff)
parent3a976d603e81cc01d5c8c8f13da125bec98d3b75 (diff)
Merge branch 'master' of https://github.com/marcinzelent/ApartmentAdmin
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r--ApartmentManager/HousingWebApi/Models/ApartmentResident.cs32
-rw-r--r--ApartmentManager/HousingWebApi/Models/Resident.cs1
2 files changed, 32 insertions, 1 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs b/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs
new file mode 100644
index 0000000..9936a5e
--- /dev/null
+++ b/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs
@@ -0,0 +1,32 @@
+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 ApartmentResident
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int ApartmentId { get; set; }
+
+ [StringLength(30)]
+ public string FirstName { get; set; }
+
+ [StringLength(30)]
+ public string LastName { get; set; }
+
+ [Column(TypeName = "date")]
+ public DateTime? BirthDate { get; set; }
+
+ [StringLength(20)]
+ public string Phone { get; set; }
+
+ [StringLength(50)]
+ public string Email { get; set; }
+
+ public byte[] Picture { get; set; }
+ }
+}
diff --git a/ApartmentManager/HousingWebApi/Models/Resident.cs b/ApartmentManager/HousingWebApi/Models/Resident.cs
index c9a698f..0509d40 100644
--- a/ApartmentManager/HousingWebApi/Models/Resident.cs
+++ b/ApartmentManager/HousingWebApi/Models/Resident.cs
@@ -9,7 +9,6 @@ namespace HousingWebApi
[Table("Resident")]
public partial class Resident
{
- [DatabaseGenerated(DatabaseGeneratedOption.None)]
public int ResidentId { get; set; }
public int ApartmentId { get; set; }