improvements, fixes, etc...

This commit is contained in:
Loretta 2025-10-13 14:18:14 +02:00
parent a5e3702616
commit c397c68601
2 changed files with 4 additions and 0 deletions

View File

@ -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; }

View File

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