Files
Projet4/PyroFetes/Models/ContactCustomer.cs
2025-12-04 17:45:06 +01:00

14 lines
388 B
C#

using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace PyroFetes.Models;
[PrimaryKey(nameof(ContactId), nameof(CustomerId))]
public class ContactCustomer
{
[Required] public int ContactId { get; set; }
[Required] public int CustomerId { get; set; }
public Contact? Contact { get; set; }
public Customer? Customer { get; set; }
}