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(ShowId), nameof(TruckId))]
public class ShowTruck
{
public Show? Show { get; set; }
[Required] public int ShowId { get; set; }
public Truck? Truck { get; set; }
[Required] public int TruckId { get; set; }
}