Correcting all errors of types, writed, and entities.

This commit is contained in:
2025-10-08 11:10:27 +01:00
parent af92cdc524
commit 0ddf5d380a
13 changed files with 90 additions and 3 deletions

View File

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