30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using FruitBank.Common.Interfaces;
|
|
using LinqToDB.Mapping;
|
|
using Mango.Nop.Core.Entities;
|
|
|
|
namespace FruitBank.Common.Entities;
|
|
|
|
[Table(Name = FruitBankConstClient.ShippingDocumentDbTableName)]
|
|
[System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.ShippingDocumentDbTableName)]
|
|
public class ShippingDocument : MgEntityBase, IShippingDocument
|
|
{
|
|
public int PartnerId { get; set; }
|
|
public int ShippingId { get; set; }
|
|
public DateTime ShippingDate { get; set; }
|
|
public string Country { get; set; }
|
|
public bool IsAllMeasured { get; set; }
|
|
|
|
[Association(ThisKey = nameof(ShippingId), OtherKey = nameof(Shipping.Id))]
|
|
public Shipping? Shipping{ get; set; }
|
|
|
|
[Association(ThisKey = nameof(PartnerId), OtherKey = nameof(Partner.Id))]
|
|
public Partner? Partner { get; set; }
|
|
|
|
[Association(ThisKey = nameof(Id), OtherKey = nameof(ShippingItem.ShippingDocumentId))]
|
|
public List<ShippingItem>? ShippingItems { get; set; }
|
|
|
|
|
|
[SkipValuesOnUpdate]
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
} |