This commit is contained in:
sunkaixuan 2023-10-21 13:34:24 +08:00
parent 8c0f98f4d2
commit f1ebc3d2fc

View File

@ -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");