You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

using FreeSql.DataAnnotations;
namespace Znyc.CloudCar.Model.Entities
{
/// <summary>
/// 订单明细表
/// </summary>
[Table(Name = "order_detail")]
public class OrderDetailEntity : EntityBase
{
/// <summary>
/// 订单表ID
/// </summary>
public long OrderId { get; set; }
/// <summary>
/// 订单商品ID
/// </summary>
public long ProductId { get; set; }
/// <summary>
/// 商品名称
/// </summary>
[Column(StringLength = 25)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“ProductName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string ProductName { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“ProductName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 购买商品数量
/// </summary>
public int ProductCnt { get; set; }
/// <summary>
/// 购买商品单价
/// </summary>
public decimal ProductPrice { get; set; }
}
}