Добавил список писем в модель клиента в БД

This commit is contained in:
Никита Потапов 2024-05-05 14:49:17 +04:00
parent f3d1de0db8
commit ee3f0bf026

View File

@ -17,6 +17,8 @@ namespace SecuritySystemDatabaseImplement.Models
public string Password { get; private set; } = string.Empty; public string Password { get; private set; } = string.Empty;
[ForeignKey("ClientId")] [ForeignKey("ClientId")]
public virtual List<Order> Orders { get; set; } = new(); public virtual List<Order> Orders { get; set; } = new();
[ForeignKey("ClientId")]
public virtual List<MessageInfo> MessageInfos { get; set; } = new();
public static Client? Create(ClientBindingModel model) public static Client? Create(ClientBindingModel model)
{ {
if (model == null) if (model == null)