Update demo

This commit is contained in:
sunkaixuan
2022-05-11 17:43:31 +08:00
parent 6d320ee897
commit b4d5d49c4d
2 changed files with 19 additions and 1 deletions

View File

@@ -17,4 +17,17 @@ namespace OrmTest
[SqlSugar.SugarColumn(IsIgnore = true)]
public List<Tree> Child { get; set; }
}
[SqlSugar.SugarTable("Tree")]
public class Tree2
{
[SqlSugar.SugarColumn(IsTreeKey =true)]
public int Id { get; set; }
public string Name { get; set; }
public int ParentId { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public Tree Parent { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public List<Tree2> Child { get; set; }
}
}