26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
using AyCode.Core.Serializers.Attributes;
|
|
using FruitBank.Common.Interfaces;
|
|
using LinqToDB.Mapping;
|
|
using Mango.Nop.Core.Entities;
|
|
|
|
namespace FruitBank.Common.Entities;
|
|
|
|
[AcBinarySerializable(false, true, false, true, false, false)]
|
|
//[ToonDescription("Business partner with address and tax information", Purpose = "Represents an external legal entity, specifically a Supplier who provides goods or a business partner involved in the procurement chain")]
|
|
[Table(Name = FruitBankConstClient.CargoTruckDbTableName)]
|
|
[System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.CargoTruckDbTableName)]
|
|
public sealed class CargoTruck: MgEntityBase, ICargoTruck
|
|
{
|
|
public int CargoPartnerId { get; set; }
|
|
|
|
[Association(ThisKey = nameof(CargoPartnerId), OtherKey = nameof(CargoPartner.Id), CanBeNull = true)]
|
|
public CargoPartner CargoPartner { get; set; }
|
|
|
|
public string CountryCode { get; set; }
|
|
public string LicencePlate { get; set; }
|
|
public bool IsTrailer { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
}
|