45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using System;
|
|
using System.Data.Entity;
|
|
using System.Linq;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace SHERPA.BBM.DatabaseModels
|
|
{
|
|
/// <summary>
|
|
/// Tabella Fatture - Documenti
|
|
/// </summary>
|
|
[Table("Fatt2Doc")]
|
|
public class Fatt2DocModel
|
|
{
|
|
#region Public Properties
|
|
|
|
[Column("AnnoFatt", Order = 6)]
|
|
public int AnnoFatt { get; set; } = DateTime.Today.Year;
|
|
|
|
[Key, Column("DataIns", Order = 2)]
|
|
public DateTime DataIns { get; set; } = DateTime.Now;
|
|
|
|
[Key, Column("DocId", Order = 0)]
|
|
public int DocId { get; set; }
|
|
|
|
[ForeignKey("DocId")]
|
|
public virtual DocsModel Document { get; set; }
|
|
|
|
[Key, Column("IdxFatt", Order = 1)]
|
|
public int IdxFatt { get; set; } = 0;
|
|
|
|
[Column("Importo", Order = 3)]
|
|
[Precision(18, 4)]
|
|
public decimal Importo { get; set; } = 0;
|
|
|
|
[Column("Incassato", Order = 4)]
|
|
[Precision(18, 4)]
|
|
public decimal Incassato { get; set; } = 0;
|
|
|
|
[Column("NumFatt", Order = 5)]
|
|
public int NumFatt { get; set; } = 0;
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |