-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update orm.md #3833
docs: update orm.md #3833
Conversation
Add Different path support for DataSource
site/docs/extensions/orm.md
Outdated
@@ -1681,3 +1681,25 @@ export default { | |||
- 1、检查 `config.default.ts` 中的 `entities` 配置是否正确 | |||
- 2、检查 `configuration.ts` 文件,确认是否引入 orm | |||
|
|||
### DataSource 的不同路径支持 | |||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对,我看到这里不完善所以顺手给过来。实际可以改到这里,表示支持多种方式的实体加载。我的本意是这个
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
虽然支持那么多种。。。但是如果现在只写 ts 后缀是会报错的,很多人看很多种就随便写一种或者干脆不看,所以之前就写了一种。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确实会存在你说的情况,我又做了描述修改,把后缀匹配都加上去了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文的也顺便改了吧-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 好了
Update orm.md
修改路径和文件名的匹配方式
Update orm.md
Update orm.md
* Update orm.md Add Different path support for DataSource * Update orm.md Update orm.md * Update orm.md 修改路径和文件名的匹配方式 * Update orm.md Update orm.md * Update orm.md Update orm.md (cherry picked from commit 8bc2f2b)
Add Different path support for DataSource
Checklist
npm test
passesAffected core subsystem(s)
Description of change