12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using Ant.Core.SqlServer.BaseEntities;
- using Central.Control.WebApi.Enum;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Web;
- namespace Central.Control.WebApi.DbEntity
- {
-
-
-
- public class YW_Product : SoftBaseEntity
- {
-
-
-
- [Key]
- [MaxLength(50)]
- public string Id { 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 Stock { set; get; }
-
-
-
- public SaleEnum Sale { set; get; } = SaleEnum.Off;
- }
- }
|