添加项目文件。
This commit is contained in:
67
Atomx.Common/Entities/ProductAttributeValue.cs
Normal file
67
Atomx.Common/Entities/ProductAttributeValue.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Atomx.Common.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品属性值表
|
||||
/// </summary>
|
||||
[Table("ProductAttributeValues")]
|
||||
public class ProductAttributeValue
|
||||
{
|
||||
/// <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 OptionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品属性关系数据ID
|
||||
/// </summary>
|
||||
public long ProductAttributeRelationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 属性值名称
|
||||
/// </summary>
|
||||
[Column(TypeName = "varchar(50)")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 属性图片
|
||||
/// </summary>
|
||||
[Column(TypeName = "varchar(255)")]
|
||||
public string Image { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 重量
|
||||
/// </summary>
|
||||
[Column(TypeName = "decimal(18,4)")]
|
||||
public decimal Weight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重量单位,1克,2千克,3磅,4盎司
|
||||
/// </summary>
|
||||
public int WeightUnit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是加重的
|
||||
/// </summary>
|
||||
public bool IsAddWeight { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 展示排序
|
||||
/// </summary>
|
||||
public int DisplayOrder { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user