Files
Yi.Admin/Yi.Framework.Net6/test/Yi.Framework.Domain/Student/Entities/StudentEntity.cs

31 lines
679 B
C#
Raw Normal View History

2023-01-12 16:53:39 +08:00
using SqlSugar;
using System;
2023-01-12 14:58:16 +08:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-01-15 14:32:43 +08:00
using Yi.Framework.Ddd.Entities;
2023-01-12 14:58:16 +08:00
namespace Yi.Framework.Domain.Student.Entities
{
/// <summary>
2023-01-15 14:32:43 +08:00
/// 学生实体
2023-01-12 14:58:16 +08:00
/// </summary>
2023-01-12 16:53:39 +08:00
[SugarTable("Student")]
2023-01-15 14:32:43 +08:00
public class StudentEntity : IEntity<long>
2023-01-12 14:58:16 +08:00
{
2023-01-16 23:05:01 +08:00
[SugarColumn(IsPrimaryKey = true)]
2023-01-12 14:58:16 +08:00
public long Id { get; set; }
2023-01-15 14:32:43 +08:00
/// <summary>
/// 学生名称
/// </summary>
2023-01-12 14:58:16 +08:00
public string Name { get; set; } = string.Empty;
2023-01-16 23:05:01 +08:00
/// <summary>
/// 学号
/// </summary>
public long Number { get;set ; }
2023-01-12 14:58:16 +08:00
}
}