forked from sanchezvem/PyroFetes
Ajout du Modèle du sujet 1
This commit is contained in:
17
PyroFetes/Models/Price.cs
Normal file
17
PyroFetes/Models/Price.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using API.Class;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Models;
|
||||
|
||||
[PrimaryKey(nameof(SupplierId), nameof(ProductId))]
|
||||
public class Price
|
||||
{
|
||||
public decimal Label { get; set; }
|
||||
|
||||
public int SupplierId { get; set; }
|
||||
[Required] public Supplier Supplier { get; set; }
|
||||
|
||||
public int ProductId { get; set; }
|
||||
[Required] public Product Product { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user