Gremlin/Gremlin_BlazorServer/Data/EntityClasses/CustomDescription.cs

40 lines
1.4 KiB
C#

using static System.String;
namespace Gremlin_BlazorServer.Data.EntityClasses;
public class CustomDescription : IMetadata
{
//primary key:
public uint CustomDescriptionId { get; set; }
//foreign keys:
public uint ProductId { get; set; }
public uint AccountId { get; set; }
public uint SupplierId { get; set; }
//navigation properties:
public Product Product { get; set; }
public Account? Supplier { get; set; }
//class properties:
public string ProductNumber { get; set; } = Empty;
public string OptionNumber { get; set; } = Empty;
public string? Heading { get; set; }
public string? DescriptionText { get; set; }
public string? CoverletterText { get; set; }
public string? Notes { get; set; } //Hinweise, Tipps, Caveats, etc. für Konfiguration, Verwendung, Best Practice usw.
//Agilent-Specific properties:
//NONE
//metadata:
public DateTime DataCreationDate { get; set; } = DateTime.Now;
public DateTime DataModificationDate { get; set; } = DateTime.Now;
public DateTime DataValidFrom { get; set; } = DateTime.Now;
public DateTime DataValidUntil { get; set; } = DateTime.MaxValue;
public string DataModificationByUser { get; set; } = "Gremlin_BlazorServer";
public uint DataVersionNumber { get; set; }
public string? DataVersionComment { get; set; }
public string DataStatus { get; set; } = "Active";
}