... 2
This commit is contained in:
parent
c397c68601
commit
28de927bd9
|
|
@ -8,6 +8,7 @@ using Mango.Nop.Core.Interfaces;
|
||||||
using Nop.Core;
|
using Nop.Core;
|
||||||
using Nop.Core.Domain.Catalog;
|
using Nop.Core.Domain.Catalog;
|
||||||
using Nop.Core.Domain.Common;
|
using Nop.Core.Domain.Common;
|
||||||
|
using Nop.Core.Domain.Customers;
|
||||||
using Nop.Core.Domain.Orders;
|
using Nop.Core.Domain.Orders;
|
||||||
using Nop.Core.Domain.Shipping;
|
using Nop.Core.Domain.Shipping;
|
||||||
|
|
||||||
|
|
@ -29,6 +30,9 @@ public abstract class MgOrderDto<TOrderItemDto, TProductDto> : MgEntityBase, IMo
|
||||||
public string CustomValuesXml { get; set; }
|
public string CustomValuesXml { get; set; }
|
||||||
public bool Deleted { get; set; }
|
public bool Deleted { get; set; }
|
||||||
|
|
||||||
|
[Association(ThisKey = nameof(CustomerId), OtherKey = nameof(Customer.Id), CanBeNull = false)]
|
||||||
|
public Customer Customer { get; set; } //TODO: CustomerDto!!! - J.
|
||||||
|
|
||||||
[Association(ThisKey = nameof(Id), OtherKey = nameof(OrderItem.OrderId), CanBeNull = true)]
|
[Association(ThisKey = nameof(Id), OtherKey = nameof(OrderItem.OrderId), CanBeNull = true)]
|
||||||
public List<TOrderItemDto> OrderItemDtos { get; set; }
|
public List<TOrderItemDto> OrderItemDtos { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
using AyCode.Interfaces.Entities;
|
using AyCode.Interfaces.Entities;
|
||||||
using Mango.Nop.Core.Dtos;
|
using Mango.Nop.Core.Dtos;
|
||||||
using Nop.Core.Domain.Common;
|
using Nop.Core.Domain.Common;
|
||||||
|
using Nop.Core.Domain.Customers;
|
||||||
using Nop.Core.Domain.Orders;
|
using Nop.Core.Domain.Orders;
|
||||||
using Nop.Core.Domain.Shipping;
|
using Nop.Core.Domain.Shipping;
|
||||||
|
|
||||||
|
|
@ -31,6 +32,7 @@ public interface IMgOrderDto<TOrderItemDto, TProductDto> : IEntityInt, ISoftDele
|
||||||
public string CustomOrderNumber { get; set; }
|
public string CustomOrderNumber { get; set; }
|
||||||
public string CustomValuesXml { get; set; }
|
public string CustomValuesXml { get; set; }
|
||||||
|
|
||||||
|
public Customer Customer { get; } //TODO: CustomerDto!!! - J.
|
||||||
public List<TOrderItemDto> OrderItemDtos { get; }
|
public List<TOrderItemDto> OrderItemDtos { get; }
|
||||||
|
|
||||||
void InitializeOrderItemDtos(List<TOrderItemDto> orderItemDtos);
|
void InitializeOrderItemDtos(List<TOrderItemDto> orderItemDtos);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue