Files
2021-04-03 15:49:32 +02:00

47 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace EgtBEAMWALL.DataLayer.DatabaseModels
{
/// <summary>
/// Tabella dei LOG Applicativo
/// </summary>
[Table("LogSupport")]
public class LogSupportModel
{
#region Public Properties
/// <summary>
/// Data Evento
/// </summary>
[Column("DtEvent")]
public DateTime DtEvent { get; set; }
/// <summary>
/// Livello da enum Core
/// </summary>
[Column("Level")]
public Core.LogSupportLevel Level { get; set; } = Core.LogSupportLevel.ND;
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int LogDbId { get; set; }
/// <summary>
/// Messaggio
/// </summary>
[Column("Message")]
public string Message { get; set; } = "";
/// <summary>
/// Target da enum Core
/// </summary>
[Column("Target")]
public Core.LogSupportTarget Target { get; set; } = Core.LogSupportTarget.ND;
#endregion Public Properties
}
}