using Ant.Core.SqlServer.BaseEntities; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Central.Control.WebApi.Models { /// /// YW_ORDERDETAILS商品订单详细表 /// public class YW_OrderDetails : SoftBaseEntity { /// /// 主键ID /// [Key] [MaxLength(50)] public string Id { set; get; } = string.Empty; /// /// 商品id /// [MaxLength(100)] [Required(AllowEmptyStrings = true)] public string ProductId { set; get; } = string.Empty; /// /// 商品名称 /// [MaxLength(100)] [Required(AllowEmptyStrings = true)] public string Name { set; get; } = string.Empty; /// /// 商品编号(唯一) /// [MaxLength(50)] [Required(AllowEmptyStrings = true)] public string Code { set; get; } = string.Empty; /// /// 商品图片 /// [MaxLength(200)] [Required(AllowEmptyStrings = true)] public string Img { set; get; } = string.Empty; /// /// 商品简介 /// [MaxLength(200)] [Required(AllowEmptyStrings = true)] public string Info { set; get; } = string.Empty; /// /// 售卖价 /// public decimal Price { set; get; } /// /// 进货价 /// public decimal BuyingPrice { set; get; } /// /// 购买数量 /// public int Count { set; get; } } }