using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using VOL.Entity.Enum; using VOL.Entity.SystemModels; namespace VOL.Entity.DomainModels { [Table("G_EntryStudent")] [Entity(TableCnName = "报名学生表", TableName = "G_EntryStudent")] public class G_EntryStudent : BaseEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Display(Description = "主键Id")] [Comment("Id")] public int Id { get; set; } /// ///学校编号 /// [Display(Name = "学校编号")] [Comment("学校编号")] [Column(TypeName = "nvarchar(100)")] public string SchoolCode { get; set; } /// ///年级Id /// [Display(Name = "年级Id")] [Comment("年级Id")] [Column(TypeName = "int")] public int GradeId { get; set; } /// ///年级名称 /// [Display(Name = "年级名称")] [Comment("年级名称")] [Column(TypeName = "nvarchar(100)")] public string GradeName { get; set; } /// ///班级Id /// [Display(Name = "班级Id")] [Comment("班级Id")] [Column(TypeName = "int")] public int ClassId { get; set; } /// ///班级名称 /// [Display(Name = "班级名称")] [Comment("班级名称")] [Column(TypeName = "nvarchar(100)")] public string ClassName { get; set; } /// ///学生学号 /// [Display(Name = "学生学号")] [Comment("学生学号")] [Column(TypeName = "nvarchar(100)")] public string StudentNo { get; set; } /// ///学生名称 /// [Display(Name = "学生名称")] [Comment("学生名称")] [Column(TypeName = "nvarchar(100)")] public string StudentName { get; set; } /// ///性别 /// [Display(Name = "性别")] [Comment("性别")] [Column(TypeName = "int")] public SexType Sex { get; set; } /// ///年龄 /// [Display(Name = "年龄")] [Comment("年龄")] [Column(TypeName = "int")] public int Age { get; set; } /// ///学生照片 /// [Display(Name = "学生照片")] [Comment("学生照片")] [Column(TypeName = "nvarchar(2000)")] public string Photo { get; set; } /// /// 活动Id /// [Display(Name = "活动Id")] [Comment("活动Id")] [Column(TypeName = "int")] public int ActivitiesId { get; set; } /// /// 活动-导航属性 /// [ForeignKey("ActivitiesId")] public G_Activities Activities { get; set; } } }