问题标签 [nhibernate-projections]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
40 浏览

c# - Nhibernate queryover(或 lambda Linq)在投影中添加子查询计数

给定这张表

我要选择

进入自定义 DTO

is dto 的投影不是问题,但我正在寻找一种将计数添加到我的查询的方法

编辑:域对象: