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 { // // This is here so CodeMaid doesn't reorganize this document // /// /// Tabella delle Negotiations /// [Table("Negotiations")] public class NegotiationsModel { #region Public Properties [Key, Column("NegotiationId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int NegotiationId { get; set; } [Column("BasketId")] public int BasketId { get; set; } = 1; [Column("CustomerId")] public int CustomerId { get; set; } = 1; [Column("Anno")] public int Anno { get; set; } = DateTime.Today.Year; [Column("CodNegotiation"), MaxLength(50)] public string CodNegotiation { get; set; } = "EGW.0000.0000"; [Column("DataIns")] public DateTime DataIns { get; set; } = DateTime.Now; [Column("Descript"), MaxLength(250)] public string Descript { get; set; } = ""; [Column("BasePath")] public string BasePath { get; set; } = ""; [ForeignKey("BasketId")] public virtual BasketsModel Basket { get; set; } [ForeignKey("CustomerId")] public virtual CustomersModel Customer { get; set; } public virtual ICollection DocsNav { get; set; } #endregion Public Properties } }