26 lines
890 B
C#
26 lines
890 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Gremlin_BlazorServer.Data.EntityClasses;
|
|
|
|
public class SubMarket : IMetadata
|
|
{
|
|
//primary key:
|
|
//public uint SubMarketId { get; set; }
|
|
[Key] public string? SubMarketCode { get; set; }
|
|
|
|
//navigation properties:
|
|
public IList<Account>? Accounts { get; set; }
|
|
|
|
//class properties:
|
|
public string? SubMarketDescription { get; set; }
|
|
|
|
//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";
|
|
} |