Add unit test

This commit is contained in:
sunkaixuan
2023-03-03 14:12:36 +08:00
parent 85733a79a4
commit 2e3dd532bc
9 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using SqlSugar;
using System.Collections.Generic;
using System.Security.Principal;
namespace Test.Model
{
[SugarTable("SchoolA01")]
public class School
{
[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; }
[Navigate(NavigateType.OneToMany, nameof(Room.PId))]
public List<Room> Rooms { get; set; }
[Navigate(NavigateType.OneToMany, nameof(Playground.PId))]
public List<Playground> Playgrounds { get; set; }
}
}