mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Add unit test
This commit is contained in:
@@ -37,6 +37,9 @@ namespace OrmTest
|
||||
{
|
||||
throw new Exception("unit error");
|
||||
}
|
||||
db.Aop.OnLogExecuting = (s1, p1) => Console.WriteLine(s1);
|
||||
var x2 = db.QueryableWithAttr<OptRole>()
|
||||
.Where(it => it.Roleinfo.id == 101).ToList();
|
||||
}
|
||||
/// <summary>
|
||||
/// 描述:
|
||||
@@ -113,6 +116,9 @@ namespace OrmTest
|
||||
/// </summary>
|
||||
public int roleId { get; set; }
|
||||
|
||||
[Navigate(NavigateType.OneToOne,nameof(roleId))]
|
||||
public Role Roleinfo { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user