не работает

This commit is contained in:
Игорь Гордеев 2024-05-01 11:07:12 +04:00
parent 85aef96efb
commit 64b7363a86

View File

@ -19,9 +19,7 @@ namespace SushiBarDatabaseImplement.Models
[Required] [Required]
public string Password { get; private set; } = string.Empty; public string Password { get; private set; } = string.Empty;
[Required] [ForeignKey("ID")]
[ForeignKey("ClientId")]
public virtual List<Order> Orders { get; set; } = new(); public virtual List<Order> Orders { get; set; } = new();
public static Client? Create(ClientBindingModel? model) public static Client? Create(ClientBindingModel? model)