ПИбд-23 Волков Никита Андреевич Лабораторная работа №8 #10

Closed
bocchanskyy wants to merge 3 commits from Lab8Base into Lab7Base
7 changed files with 10 additions and 2 deletions
Showing only changes of commit d5c4ed78b4 - Show all commits

View File

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

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);