37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Interfaces.Entities;
|
|
using AyCode.Interfaces.TimeStampInfo;
|
|
using TIAM.Core.Enums;
|
|
using TIAM.Entities.Products;
|
|
|
|
namespace TIAM.Entities.Transfers
|
|
{
|
|
[Table(nameof(TransferDestinationToProduct))]
|
|
public class TransferDestinationToProduct : IEntityGuid, ITimeStampInfo, IProductForeignKey, ITransfeDestinationPrices
|
|
{
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid ProductId { get; set; }
|
|
//public virtual Product Product { get; set; }
|
|
|
|
public Guid TransferDestinationId { get; set; }
|
|
public virtual TransferDestination TransferDestination { get; set; }
|
|
|
|
public double Price { get; set; }
|
|
public double? Price2 { get; set; }
|
|
public double? Price3 { get; set; }
|
|
|
|
public double ProductCommis { get;set; }
|
|
|
|
//public double? ExtraPrice { get; set; }
|
|
///// <summary>
|
|
///// Kihajtás v. behajtás az ExtraPrice! Ha null, akkor mindkettő...
|
|
///// </summary>
|
|
//public TransferExtraPriceType ExtraPriceType { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
}
|
|
} |