чуть добавила
This commit is contained in:
parent
cd826c1b51
commit
44b6dfdcb7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user