-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathTBuilding.cs
More file actions
34 lines (26 loc) · 889 Bytes
/
TBuilding.cs
File metadata and controls
34 lines (26 loc) · 889 Bytes
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
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DAL
{
[Table("OB_TBuilding")]
public class TBuilding
{
[Column("pkBID")]
[Required, Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Int32 Id { get; set; }
[Column("Identifier")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Identity { get; set; }
[Column("sLongName")]
public String LongName { get; set; }
[ForeignKey("Builder")]
public Int32 BuilderId { get; set; }
public TBuilder Builder { get; set; }
public TMandator Mandator { get; set; }
[ForeignKey("Mandator")]
[Column("fkMandatorID")]
public Int32 MandatorId { get; set; }
public Int32 FloorAmount { get; set; }
}
}