aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Frederiksen <mikk9996@edu.easj.dk>2017-05-15 17:20:30 +0200
committerMikkel Frederiksen <mikk9996@edu.easj.dk>2017-05-15 17:20:30 +0200
commit7b6fedcd047df6a2f60b154611c7ae0b23afa900 (patch)
treefa6f905dd1a9d196dac87bab2bb8e4a6c08c54f4 /ApartmentManager/HousingWebApi/Models
parent6147c79c5805c3052511b72ee83ec960919c8947 (diff)
parent19116f8624c783f26378b5d860794a4fec411757 (diff)
Merge branch 'master' of https://github.com/marcinzelent/ApartmentAdmin
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r--ApartmentManager/HousingWebApi/Models/ApartmentResident.cs37
-rw-r--r--ApartmentManager/HousingWebApi/Models/database_firewall_rules.cs38
2 files changed, 75 insertions, 0 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs b/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs
new file mode 100644
index 0000000..092c95f
--- /dev/null
+++ b/ApartmentManager/HousingWebApi/Models/ApartmentResident.cs
@@ -0,0 +1,37 @@
+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]
+ [Column(Order = 0)]
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public int ApartmentNumber { get; set; }
+
+ [Key]
+ [Column(Order = 1)]
+ [StringLength(20)]
+ public string FirstName { get; set; }
+
+ [Key]
+ [Column(Order = 2)]
+ [StringLength(20)]
+ public string LastName { get; set; }
+
+ [Column(TypeName = "date")]
+ public DateTime? BirthDate { get; set; }
+
+ public int? PhoneNo { get; set; }
+
+ [StringLength(30)]
+ public string Email { get; set; }
+
+ [Column(TypeName = "image")]
+ public byte[] Picture { get; set; }
+ }
+}
diff --git a/ApartmentManager/HousingWebApi/Models/database_firewall_rules.cs b/ApartmentManager/HousingWebApi/Models/database_firewall_rules.cs
new file mode 100644
index 0000000..3b5d6a5
--- /dev/null
+++ b/ApartmentManager/HousingWebApi/Models/database_firewall_rules.cs
@@ -0,0 +1,38 @@
+namespace HousingWebApi
+{
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel.DataAnnotations;
+ using System.ComponentModel.DataAnnotations.Schema;
+ using System.Data.Entity.Spatial;
+
+ [Table("sys.database_firewall_rules")]
+ public partial class database_firewall_rules
+ {
+ [Key]
+ [Column(Order = 0)]
+ public int id { get; set; }
+
+ [Key]
+ [Column(Order = 1)]
+ public string name { get; set; }
+
+ [Key]
+ [Column(Order = 2)]
+ [StringLength(45)]
+ public string start_ip_address { get; set; }
+
+ [Key]
+ [Column(Order = 3)]
+ [StringLength(45)]
+ public string end_ip_address { get; set; }
+
+ [Key]
+ [Column(Order = 4)]
+ public DateTime create_date { get; set; }
+
+ [Key]
+ [Column(Order = 5)]
+ public DateTime modify_date { get; set; }
+ }
+}