66 lines
1.9 KiB
C#
66 lines
1.9 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; }
|
|
|
|
//[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
|
|
}
|
|
} |