Closed pinzi closed 11 months ago
只测试了SQLSERVER数据库
db.Queryable<Order>()
.Select(it => new {
x= SqlFunc.Subqueryable<OrderItem>().AsWithAttr().Select(s => s.OrderId)
})
.ToList();
最新预览版本已支持AsWithAttr ,规则 和 QueryableWithAttr一样
1.新增SqlFunc.SubqueryableWithAttr方法支持跨库子查询
2.新增SqlFunc.Subqueryable(bool IsCrossQueryWithAttr = false)方法支持跨库子查询