Abazov A. A. LabWork03_Base #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "LabWork03_Base"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Зачтено с понижением балла(ов)
@ -0,0 +82,4 @@
static OrderViewModel AccessPastryStorage(OrderViewModel model, ConfectioneryDatabase context)
{
if (model == null) return model;
string? pastryName = context.Pastrys.FirstOrDefault(x => x.Id == model.PastryId)?.PastryName;
Cущности связаны, так что отдельный запрос для получения названия не требуется
@ -0,0 +123,4 @@
modelBuilder.Entity("ConfectioneryDataBaseImplement.Models.Order", b =>
{
b.HasOne("ConfectioneryDataBaseImplement.Models.Pastry", null)
Связь настроена не до конца
Pull request closed