Files
egtbeamwall/EgtBEAMWALL.DbDataLayer/DatabaseModels/BTLPartModel.cs
T
Samuele E. Locatelli f812ff66c2 initial commit
2021-03-04 19:48:48 +01:00

69 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace EgtBEAMWALL.DbDataLayer.DatabaseModels
{
[Table("BTLPartList")]
public class BTLPartModel
{
[Key, Column("BTLPartDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int PartDbId { get; set; }
[Column("BTLPartId")]
public int PartId { get; set; }
[Column("BTLPart_PDN")]
public int PDN { get; set; } = 0;
[Column("BTLPart_DO")]
public bool DO { get; set; } = false;
[Column("BTLPart_NAM")]
public string NAM { get; set; } = "";
[Column("BTLPart_W")]
public double W { get; set; } = 0;
[Column("BTLPart_L")]
public double L { get; set; } = 0;
[Column("BTLPart_H")]
public double H { get; set; } = 0;
[Column("BTLPart_MAT")]
public string MAT { get; set; } = "";
[Column("BTLPart_CNT")]
public int CNT { get; set; } = 0;
[Column("BTLPart_TBP")]
public int TBP { get; set; } = 0;
[Column("BTLPart_DON")]
public int DON { get; set; } = 0;
[Column("BTLPart_ROT")]
public int ROT { get; set; } = 0;
[Column("BTLPart_GRP")]
public string GRP { get; set; } = "";
[Column("BTLPart_UNT")]
public int UNT { get; set; } = 0;
[Column("BTLPart_State")]
public int State { get; set; } = -1;
[Column("ProjDbId")]
public int ProjDbId { get; set; }
[ForeignKey("ProjDbId")]
public ProjModel Project { get; set; }
}
}