node.js-typeorm - 如何在@TreeParent 上使用自定义数据库列名
问题描述
我在'parent'等属性上使用@TreeParent,treeorm将'parentId'(数据库列名)匹配到'parent',如何使用'parent_id'等自定义列名?
解决方案
推荐阅读
- webview - Android TV人像WebView
- c# - 如果条件不满足,不要从 TestClass 运行测试
- html - Form Validation.io 不适用于标准 html 和 css 项目
- ios - 如何确定何时返回 tableView 中的单元格,以便在完成后添加 uiview?
- java - 为什么 context.startActivity(intent) 没有启动活动以及如何在 android 中处理异常?
- c++ - 循环矩阵和向量
- google-bigquery - 嵌套 WHERE 条件以从表的不同段中提取计数?
- azure-pipelines - Azure 管道调试日志记录
- sql - 固定表分层查询的Union All替代方案
- tsql - 是否可以使用 t-sql 创建一个存储过程,在其中使用存储过程中的 ODBC 数据源查询远程数据库?