29 lines
981 B
C#
29 lines
981 B
C#
using FruitBank.Common.Interfaces;
|
|
using LinqToDB.Mapping;
|
|
using Mango.Nop.Core.Entities;
|
|
|
|
namespace FruitBank.Common.Entities;
|
|
|
|
[Table(Name = FruitBankConstClient.PartnerDbTableName)]
|
|
[System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.PartnerDbTableName)]
|
|
public class Partner : MgEntityBase, IPartner
|
|
{
|
|
public string Name { get; set; }
|
|
public string TaxId { get; set; }
|
|
public string CertificationNumber { get; set; }
|
|
|
|
public string PostalCode { get; set; }
|
|
public string Country { get; set; }
|
|
public string State { get; set; }
|
|
public string County { get; set; }
|
|
public string City { get; set; }
|
|
public string Street { get; set; }
|
|
|
|
[Association(ThisKey = nameof(Id), OtherKey = nameof(ShippingDocument.ShippingId), CanBeNull = true)]
|
|
public List<ShippingDocument>? ShippingDocuments { get; set; }
|
|
|
|
|
|
[SkipValuesOnUpdate]
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
} |