improvements, fixes, etc...
This commit is contained in:
parent
a5e3702616
commit
c397c68601
|
|
@ -16,6 +16,8 @@ public abstract class MgOrderItemDto<TProductDto> : MgEntityBase, IModelDtoBase<
|
||||||
public string AttributesXml { get; set; }
|
public string AttributesXml { get; set; }
|
||||||
public decimal? ItemWeight { get; set; }
|
public decimal? ItemWeight { get; set; }
|
||||||
|
|
||||||
|
public string ProductName => ProductDto?.Name ?? "ProductDto is null!!!";
|
||||||
|
|
||||||
[Association(ThisKey = nameof(ProductId), OtherKey = nameof(Product.Id), CanBeNull = true)]
|
[Association(ThisKey = nameof(ProductId), OtherKey = nameof(Product.Id), CanBeNull = true)]
|
||||||
public TProductDto? ProductDto { get; set; }
|
public TProductDto? ProductDto { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@ public interface IMgOrderItemDto<TProductDto> : IEntityInt where TProductDto : I
|
||||||
public string AttributesXml { get; set; }
|
public string AttributesXml { get; set; }
|
||||||
public decimal? ItemWeight { get; set; }
|
public decimal? ItemWeight { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public string ProductName { get; }
|
||||||
public TProductDto? ProductDto { get; set; }
|
public TProductDto? ProductDto { get; set; }
|
||||||
|
|
||||||
void InitializeProductDto(TProductDto productDto);
|
void InitializeProductDto(TProductDto productDto);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue