Project4 Adding entities

This commit is contained in:
2025-10-02 17:11:00 +02:00
parent d3a8ae593e
commit da468f2853
15 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace PyroFetes.Models;
public class Customer
{
[Key] public int Id { get; set; }
[Required] public string? Note { get; set; }
//Les relations
public int CustomerTypeId { get; set; }
public CustomerType? CustomerType { get; set; }
public int ContactId { get; set; }
public Contact? Contact { get; set; }
}