Entité du sujet 3 avec connections et cardinalités
This commit is contained in:
13
PyroFetes/Models/SoundCategory.cs
Normal file
13
PyroFetes/Models/SoundCategory.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
public class SoundCategory
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
[Required, MaxLength(60)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public ICollection<Sound> Sounds { get; set; } = new List<Sound>();
|
||||
}
|
Reference in New Issue
Block a user