mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
19 lines
424 B
C#
19 lines
424 B
C#
using SqlSugar;
|
|
using System.Security.Principal;
|
|
|
|
namespace Test.Model
|
|
{
|
|
[SugarTable("BookA01")]
|
|
public class Book
|
|
{
|
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
|
public int? Id { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "Name")]
|
|
public string Name { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "PId")]
|
|
public int? PId { get; set; }
|
|
}
|
|
}
|