PIbd-22 Chubykina P.P. LabWork_03_Hard #12

Closed
chubykina_polina wants to merge 7 commits from LabWork_03_Hard into LabWork_02_Hard
Showing only changes of commit 44b6dfdcb7 - Show all commits

View File

@ -37,6 +37,8 @@ namespace ConfectioneryDatabaseImplement.Models
public virtual List<PastryComponent> Components { get; set; } = new();
[ForeignKey("PastryId")]
public virtual List<Order> Orders { get; set; } = new();
[ForeignKey("PastryId")]
public virtual List<ShopPastry> ShopPastries { get; set; } = new();
public static Pastry Create(ConfectioneryDatabase context, PastryBindingModel model)
{
return new Pastry()