Correction de toutes les erreurs de relations et d'écritures dans tous

This commit is contained in:
2025-10-07 23:46:57 +01:00
parent 89be35ecb0
commit 856d8e2733
7 changed files with 41 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace PyroFetes.Models;
[PrimaryKey(nameof(StaffId), nameof(ShowId))]
public class ShowStaff
{
public Staff? Staff { get; set; }
[Required] public int StaffId { get; set; }
public Show? Show { get; set; }
[Required] public int ShowId { get; set; }
}