Files
Disco/Disco.Services/Logging/Models/LogModule.cs
T
2017-03-25 15:29:51 +11:00

20 lines
578 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Services.Logging.Models
{
[Table("Modules")]
public class LogModule
{
[Required, Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
[Required, MaxLength(200)]
public string Name { get; set; }
[Required, MaxLength(500)]
public string Description { get; set; }
public virtual IList<LogEventType> EventTypes { get; set; }
}
}