Update query in query select subquery bug

This commit is contained in:
sunkaixuan
2022-04-23 12:12:14 +08:00
parent 4dfa4e85ea
commit 4186e0820e
4 changed files with 20 additions and 0 deletions

View File

@@ -142,6 +142,11 @@ namespace OrmTest
{
it.UnitA002 = db.Queryable<UnitA002>().SetContext(x => x.orgid, () => it.id, it).First();
});
db.Queryable(db.Queryable<Order>())
.Select(it => new
{
x = SqlFunc.Subqueryable<Order>().Where(z => z.Id == it.Id).Any()
}).ToList();
}
public class UnitA001