55 lines
1.6 KiB
C#
55 lines
1.6 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 delle Negotiations
|
|
/// </summary>
|
|
[Table("Negotiations")]
|
|
public class NegotiationsModel
|
|
{
|
|
#region Public Properties
|
|
|
|
[Key, Column("NegotiationId", Order = 0), 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<DocsModel> DocsNav { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |