问题标签 [servicestack-autoquery]
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.
servicestack - OrmLite可以为除主键之外的属性指定外键吗
我有一个表结构,其中来自 Employee 表的外键引用了除 Department 表的主键之外的其他内容。这是出于历史原因,所以事情就是这样。
这有效:q.Join<Department>((e, d) => e.DepartmentId == d.DepNo);
. 请注意,部门的主键是Id
.
现在,有什么方法可以指定连接关系(使用列名)?原因是我想使用 AutoQuery 的内置IJoin<Employee,Department>
东西,但这不允许我指定要使用的列。
servicestack - table.id 列的自动查询 servicestack ILeftJoin 问题
我对自动查询 dto 的定义如下:
不知道为什么在查询执行期间 ContractItemEstimateItemId 的值取自 ContractItemEstimateItemComponent.ContractItemEstimateItemId (该值尚不存在)。
预计查询将从中获取字段ContractItemEstimateItemId
值ContractItemEstimateItem.Id