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.DbEntity { /// /// YW_DeviceProduct设备售卖商品 /// public class YW_DeviceProduct : SoftBaseEntity { /// /// 主键ID /// [Key] [MaxLength(50)] public string Id { set; get; } = string.Empty; /// /// 设备id /// [MaxLength(50)] [Required(AllowEmptyStrings = true)] public string DeviceId { set; get; } = string.Empty; /// /// 商品id /// [MaxLength(50)] [Required(AllowEmptyStrings = true)] public string ProductId { set; get; } = string.Empty; /// /// 售卖价 /// public decimal Price { set; get; } /// /// 库存 /// public int Stock { set; get; } } }