client fix
This commit is contained in:
parent
1bb8c060cb
commit
e43157e3d7
@ -4,6 +4,7 @@ using ConfectioneryDataModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@ -23,6 +24,7 @@ namespace ConfectioneryDatabaseImplement.Models
|
||||
|
||||
public int Id { get; private set; }
|
||||
|
||||
[ForeignKey("ClientId")]
|
||||
public virtual List<Order> Orders { get; set; } = new();
|
||||
|
||||
public static Client? Create(ClientBindingModel model)
|
||||
|
Loading…
Reference in New Issue
Block a user