blob: 16d884d74ae9bfa092b2f3654d2fd3c1f7c3b1b0 (
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
|
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; }
[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; }
}
}
|