mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
24 lines
584 B
C#
24 lines
584 B
C#
using SqlSugar;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TestDemo.Entitys
|
|
{
|
|
[SugarTable("person_info")]
|
|
public class PersonInfo
|
|
{
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 姓名
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "name")]
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// 身份证号码
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "id_card")]
|
|
public string IdCard { get; set; }
|
|
}
|
|
}
|