server/aspnetapp/Models/GoodsEntity.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace aspnetapp.Models
{
    /// <summary>
    /// 分类实体
    /// </summary>
    [Serializable]
    public record class GoodsEntity
    {
        /// <summary>
        /// 主键 id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("goods_id")]
        public int Id { get; set; }

        /// <summary>
        /// 商品特征
        /// </summary>
        [Column("goods_name")]
        public string Name { get; set; } = null!;

        /// <summary>
        /// 商品名称
        /// </summary>
        [Column("goods_characteristic")]
        public string Characteristic { get; set; } = null!;

        /// <summary>
        /// 简介 可为空
        /// </summary>
        [Column("goods_info")]
        public string? Info { get; set; }

        /// <summary>
        /// 餐品分类id
        /// </summary>
        [Column("goods_categoryid")]
        public int? CategoryId { get; set; }

        /// <summary>
        /// 供餐时间 早1 中2 晚3
        /// </summary>
        [Column("goods_ordertype")]
        public int? Ordertype { get; set; }

        /// <summary>
        /// 是否为清真餐 可为空
        /// </summary>
        [Column("goods_isqz")]
        public bool? Isqz { get; set; } = false;

        /// <summary>
        /// 是否为特色餐 可为空
        /// </summary>
        [Column("goods_isspecial")]
        public int? IsSpecial { get; set; } = 0;
后面还有 83 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。