Files
SHERPA/SHERPA.BBM/DatabaseModels/DocsModel.cs
T
2021-12-02 15:31:39 +01:00

71 lines
2.1 KiB
C#

using System;
using System.Data.Entity;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
namespace SHERPA.BBM.DatabaseModels
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
/// <summary>
/// Tabella dei Documenti
/// </summary>
[Table("Docs")]
public class DocsModel
{
#region Public Properties
[Key, Column("DocId", Order = 0), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int DocId { get; set; }
[Column("CodDoc"), MaxLength(50)]
public string CodDoc { get; set; } = "EGW.D.0000.0000.00";
[Column("Anno")]
public int Anno { get; set; } = DateTime.Today.Year;
[Column("NegotiationId")]
public int NegotiationId { get; set; }
[Column("Descript"), MaxLength(250)]
public string Descript { get; set; } = "";
[Column("NumDoc")]
public int NumDoc { get; set; } = 0;
[Column("DocType")]
public BbmDocType DocType { get; set; } = BbmDocType.Quotazione;
[Column("DataIns")]
public DateTime DataIns { get; set; } = DateTime.Now;
[Column("IsActive")]
public bool IsActive { get; set; } = false;
[Column("IsDraft")]
public bool IsDraft { get; set; } = false;
[Column("Note"), MaxLength(500)]
public string Note { get; set; } = "";
[ForeignKey("NegotiationId")]
public virtual NegotiationsModel Negotiation { get; set; }
public virtual ICollection<Fatt2DocModel> FattNav { get; set; }
public virtual ICollection<ResourcesModel> ResNav { get; set; }
//[Column("DocPath", Order = 8), MaxLength(500)]
//public string DocPath { get; set; } = "";
//[Column("BasketId", Order = 7)]
//public int BasketId { get; set; }
//[ForeignKey("BasketId")]
//public virtual BasketsModel Basket { get; set; }
#endregion Public Properties
}
}