40 lines
944 B
C#
40 lines
944 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Atomx.Common.Entities
|
|
{
|
|
/// <summary>
|
|
/// 产品属性关系表
|
|
/// </summary>
|
|
[Table("ProductAttributeRelations")]
|
|
public class ProductAttributeRelation
|
|
{
|
|
/// <summary>
|
|
/// 产品属性关联数据ID
|
|
/// </summary>
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
[Key]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 产品ID
|
|
/// </summary>
|
|
public long ProductId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 产品属性ID
|
|
/// </summary>
|
|
public long AttributeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 属性
|
|
/// </summary>
|
|
public bool Image { get; set; }
|
|
|
|
/// <summary>
|
|
/// 展示排序
|
|
/// </summary>
|
|
public int DisplayOrder { get; set; }
|
|
}
|
|
}
|