MP.DATA, riorganizzazioni varie:

- renaming classi gestione DbModels in
- spostamento anagrafica flussi da auth a generale
This commit is contained in:
Samuele E. Locatelli
2025-03-08 10:40:09 +01:00
parent f33a17c156
commit 50d65eebaa
227 changed files with 400 additions and 367 deletions
+43
View File
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace MP.Data.DbModels
{
[Table("InveSess")]
public class InventorySessionModel
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int InveSessID { get; set; }
public string Description { get; set; } = "";
public string UserCrea { get; set; } = "";
public int? MagID { get; set; } = null;
public DateTime DtStart { get; set; } = DateTime.Now;
public DateTime? DtEnd { get; set; } = null;
public bool Transferred { get; set; } = false;
[NotMapped]
public bool IsCurrent
{
get => (DtEnd == null);
}
[NotMapped]
public bool IsValid
{
get => ((DtEnd != null && DtEnd > DtStart));
}
/// <summary>
/// Navigazione oggetto Magazzino
/// </summary>
[ForeignKey("MagID")]
public virtual AnagMagModel AnagMagNav { get; set; } = null;
}
}