не работает

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]
public string Password { get; private set; } = string.Empty;
[Required]
[ForeignKey("ClientId")]
[ForeignKey("ID")]
public virtual List<Order> Orders { get; set; } = new();
public static Client? Create(ClientBindingModel? model)