mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update unit test
This commit is contained in:
parent
619e355f21
commit
6bbed3ad05
@ -247,8 +247,24 @@ namespace OrmTest
|
|||||||
CreateAdminUserName = c.Name,
|
CreateAdminUserName = c.Name,
|
||||||
ModifyAdminUserName = m.Name
|
ModifyAdminUserName = m.Name
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
||||||
|
var listxxxxxxxxxxx = Db.Queryable<Tree2, Tree2>((a, b) => new JoinQueryInfos(JoinType.Inner, a.ParentId == b.Id))
|
||||||
|
.Select((a, b) => new {
|
||||||
|
user = a,
|
||||||
|
parentUser = b
|
||||||
|
})
|
||||||
|
.ToList();
|
||||||
|
}
|
||||||
|
[SugarTable("tree ")]
|
||||||
|
public class Tree2
|
||||||
|
{
|
||||||
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
|
||||||
|
public int Id { get; set; }
|
||||||
|
[SugarColumn(ColumnName = "ParentId")]
|
||||||
|
public int ParentId { get; set; }
|
||||||
|
[SugarColumn(ColumnName = "name")]
|
||||||
|
public string Name { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class UnitEnumTest
|
public class UnitEnumTest
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarColumn(IsNullable =true)]
|
[SqlSugar.SugarColumn(IsNullable =true)]
|
||||||
|
Loading…
Reference in New Issue
Block a user