using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace YD_WeChatApplet.Api.Entitys { /// /// 体育项目 /// [Table("WCA_Category")] public class WCA_Category { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Display(Description = "主键Id")] [Comment("Id")] public int Id { get; set; } /// ///类别枚举值 /// [Display(Name = "类别枚举值")] [Comment("类别枚举值")] [Column(TypeName = "int")] public int CategoryValue { get; set; } /// ///类别中文名称 /// [Display(Name = "类别中文名称")] [Comment("类别中文名称")] [Column(TypeName = "nvarchar(100)")] public string CategoryName { get; set; } /// ///类别枚举名称 /// [Display(Name = "类别枚举名称")] [Comment("类别枚举名称")] [Column(TypeName = "nvarchar(100)")] public string CategoryEnum { get; set; } /// ///运动类型Key /// [Display(Name = "运动类型Key")] [Comment("运动类型Key")] [Column(TypeName = "nvarchar(100)")] public string CategoryKey { get; set; } /// ///卡路里指数 /// [Display(Name = "卡路里指数")] [Comment("卡路里指数")] [Column(TypeName = "float")] public double KcalIndex { get; set; } /// ///备注 /// [Display(Name = "备注")] [Comment("备注")] [Column(TypeName = "text")] public string Remarks { get; set; } } }