30 lines
928 B
C#
30 lines
928 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Interfaces.Entities;
|
|
using LinqToDB.Mapping;
|
|
using Mango.Nop.Core.Entities;
|
|
using Nop.Core;
|
|
using Nop.Plugin.Misc.AuctionPlugin.Domains.Entities.Interfaces;
|
|
using Nop.Plugin.Misc.AuctionPlugin.Domains.Enums;
|
|
|
|
namespace Nop.Plugin.Misc.AuctionPlugin.Domains.Entities;
|
|
|
|
public partial class ProductToAuctionMapping : MgEntityBase, IProductToAuctionMapping
|
|
{
|
|
public int ProductId { get; set; }
|
|
public int AuctionId { get; set; }
|
|
public int WinnerCustomerId { get; set; }
|
|
|
|
//[NotMapped]
|
|
//[NotColumn]
|
|
public AuctionStatus AuctionStatus { get; set; }
|
|
|
|
public decimal StartingPrice { get; set; }
|
|
public decimal BidPrice { get; set; }
|
|
|
|
public int ProductAmount { get; set; } = 1;
|
|
public int SortIndex { get; set; }
|
|
|
|
[SkipValuesOnUpdate]
|
|
public DateTime Created { get; set; }
|
|
public DateTime Modified { get; set; }
|
|
} |