blob: 94c9b111dc3dd7a736d1df838329823f0ac5405d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
namespace HousingWebApi
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("Apartment")]
public partial class Apartment
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Apartment()
{
ApartmentChanges = new HashSet<ApartmentChange>();
Defects = new HashSet<Defect>();
PastUsers = new HashSet<PastUser>();
Residents = new HashSet<Resident>();
Users = new HashSet<User>();
}
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int ApartmentId { get; set; }
public double? Size { get; set; }
public int? NumberOfRooms { get; set; }
public double? MonthlyCharge { get; set; }
public int? Floor { get; set; }
[StringLength(100)]
public string Address { get; set; }
[StringLength(50)]
public string PlanPicture { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<ApartmentChange> ApartmentChanges { 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<PastUser> PastUsers { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Resident> Residents { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<User> Users { get; set; }
}
}
|