25 lines
675 B
C#
25 lines
675 B
C#
using AyCode.Interfaces.Entities;
|
|
using Nop.Core.Domain.Orders;
|
|
|
|
namespace Mango.Nop.Core.Interfaces;
|
|
|
|
public interface IMgOrderItemDto<TProductDto> : IEntityInt where TProductDto : IMgProductDto
|
|
{
|
|
public Guid OrderItemGuid { get; set; }
|
|
|
|
public int OrderId { get; set; }
|
|
|
|
public int ProductId { get; set; }
|
|
|
|
public int Quantity { get; set; }
|
|
|
|
public string AttributesXml { get; set; }
|
|
public decimal? ItemWeight { get; set; }
|
|
|
|
|
|
public string ProductName { get; }
|
|
public TProductDto? ProductDto { get; set; }
|
|
|
|
void InitializeProductDto(TProductDto productDto);
|
|
void CopyEntityValuesToDto(OrderItem entity, TProductDto productDto);
|
|
} |