using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Admin.NET.Core { /// /// 学生信息表 /// [Comment("学生信息表")] [Table("test_students")] public class TestStudent : DEntityBase { /// /// 学生姓名 /// [Comment("学生姓名")] [MaxLength(10)] public string Name { get; set; } /// /// 学生年龄 /// [Comment("学生年龄")] public int Age { get; set; } /// /// 是否在校 /// [Comment("是否在校")] [MaxLength(50)] public bool StartName { get; set; } /// /// 性别 /// [Comment("性别")] public GenderChinese Gender { get; set; } /// /// 出生日期 /// [Comment("出生日期")] public DateTime BrithDate { get; set; } /// /// 关联老师 /// [Comment("关联老师")] public long? TeacherId { get; set; } } }