ПИбд-23 Салин Олег Алексеевич Лабораторная работа №6 (Усложненная) #23

Closed
Oleja123 wants to merge 13 commits from Lab6_Hard into Lab5_Hard
6 changed files with 9 additions and 9 deletions
Showing only changes of commit d2241ea027 - Show all commits

View File

@ -13,7 +13,7 @@ namespace IceCreamShopContracts.BindingModels
{
public int Id { get; set; }
public int IceCreamId { get; set; }
public int ImplementerId { get; set; }
public int? ImplementerId { get; set; } = null;
public int ClientId { get; set; }
public int Count { get; set; }
public double Sum { get; set; }

View File

@ -16,7 +16,7 @@ namespace IceCreamShopContracts.ViewModels
public int Id { get; set; }
public int IceCreamId { get; set; }
public int ClientId { get; set; }
public int ImplementerId { get; set; }
public int? ImplementerId { get; set; } = null;
[DisplayName("Клиент")]
public string ClientFIO { get; set; } = string.Empty;
[DisplayName("Мороженное")]

View File

@ -11,7 +11,7 @@ namespace IceCreamShopDataModels.Models
{
int IceCreamId { get; }
int ClientId { get; }
int ImplementerId { get; }
int? ImplementerId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }

View File

@ -29,9 +29,9 @@ namespace IceCreamShopDatabaseImplement.Models
[Required]
public int ClientId { get; private set; }
public virtual Client Client { get; private set; }
[Required]
public int ImplementerId { get; private set; }
public virtual Implementer Implementer { get; private set; }
[Required]
public int? ImplementerId { get; private set; } = null;
public virtual Implementer? Implementer { get; private set; }
public static Order? Create(IceCreamShopDataBase context, OrderBindingModel model)
{
if (model == null)
@ -78,7 +78,7 @@ namespace IceCreamShopDatabaseImplement.Models
IceCreamName = IceCream.IceCreamName,
Id = Id,
ClientFIO = Client.ClientFIO,
ImplementerFIO = Implementer.ImplementerFIO
ImplementerFIO = (Implementer != null ? Implementer.ImplementerFIO : string.Empty)
};
}

View File

@ -15,7 +15,7 @@ namespace IceCreamShopFileImplement.Models
{
public int Id { get; private set; }
public int IceCreamId { get; private set; }
public int ImplementerId { get; private set; }
public int? ImplementerId { get; private set; } = null;
public int ClientId { get; private set; }
public int Count { get; private set; }
public double Sum { get; private set; }

View File

@ -18,7 +18,7 @@ namespace IceCreamShopListImplement.Models
public int Id { get; private set; }
public int IceCreamId { get; private set; }
public int ClientId { get; private set; }
public int ImplementerId { get; private set; }
public int? ImplementerId { get; private set; }
public int Count { get; private set; }
public double Sum { get; private set; }
public OrderStatus Status { get; private set; }