mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add demo
This commit is contained in:
parent
8c0f98f4d2
commit
f1ebc3d2fc
@ -47,6 +47,14 @@ namespace OrmTest
|
|||||||
.Includes(o => o.FirstReply, o => o.ReplyUser)
|
.Includes(o => o.FirstReply, o => o.ReplyUser)
|
||||||
.Includes(o => o.FirstReply, o => o.UserInfo)
|
.Includes(o => o.FirstReply, o => o.UserInfo)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
db.Queryable<poetry_video_comment>().IncludeFullJoin(it => it.FirstReply)
|
||||||
|
.ToList();
|
||||||
|
db.Queryable<poetry_video_comment>().IncludeLeftJoin(it => it.FirstReply)
|
||||||
|
.ToList();
|
||||||
|
db.Queryable<poetry_video_comment>().IncludeRightJoin(it => it.FirstReply)
|
||||||
|
.ToList();
|
||||||
|
db.Queryable<poetry_video_comment>().IncludeInnerJoin(it => it.FirstReply)
|
||||||
|
.ToList();
|
||||||
if (list.Last().FirstReply.UserInfo == null)
|
if (list.Last().FirstReply.UserInfo == null)
|
||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
|
Loading…
Reference in New Issue
Block a user