mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Add unit test
This commit is contained in:
25
Src/Asp.Net/SqliteTest/UnitTest/Models/School.cs
Normal file
25
Src/Asp.Net/SqliteTest/UnitTest/Models/School.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user