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