dll fixes + client mail fix

This commit is contained in:
Никита Волков 2024-05-14 05:27:50 +04:00
parent 160d61c655
commit d5c4ed78b4
7 changed files with 10 additions and 2 deletions

View File

@ -21,7 +21,10 @@ namespace ComputersShopContracts.ViewModels
[Column(visible: false)]
public int ClientId { get; set; }
[Column("Данные клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)] public string ClientFIO { get; set; } = string.Empty;
[Column("Данные клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string ClientFIO { get; set; } = string.Empty;
[Column(visible: false)]
public string ClientEmail { get; set; } = string.Empty;
[Column(visible: false)]

View File

@ -33,6 +33,9 @@ namespace ComputersShopDataBaseImplement.Models
[ForeignKey("ClientId")]
public virtual List<Order> Orders { get; set; } = new();
[ForeignKey("ClientId")]
public virtual List<Message> Messages { get; set; } = new();
public static Client? Create(ClientBindingModel model)
{
if (model == null)

View File

@ -19,6 +19,8 @@ namespace ComputersShopDataBaseImplement.Models
public int? ClientId { get; private set; }
public virtual Client? Client { get; set; }
public string SenderName { get; private set; } = string.Empty;
public DateTime DateDelivery { get; private set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);