SqlSugar/Src/Asp.Net/SqliteTest/UnitTest/Models/Book.cs

19 lines
424 B
C#
Raw Normal View History

2023-03-03 14:12:36 +08:00
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; }
}
}