Files
CouchLog/WatchLog/Data/DatabaseModels/Global/Genre.cs

23 lines
559 B
C#

using System.ComponentModel.DataAnnotations;
namespace WatchLog.Data
{
public class Genre
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(50)]
public required string Name { get; set; }
[Required]
public required DateTime CreationTime { get; set; }
public DateTime? LastChange { get; set; }
// --- Navigation Properties ---
public virtual ICollection<LinkTableGlobalGenre> LinkTableGlobalGenres { get; set; } = new List<LinkTableGlobalGenre>();
}
}