Skip to content
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

建议 WeedConfig 中的全局变量封装到DbContext中 #16

Open
ian4hu opened this issue Mar 31, 2022 · 2 comments
Open

建议 WeedConfig 中的全局变量封装到DbContext中 #16

ian4hu opened this issue Mar 31, 2022 · 2 comments

Comments

@ian4hu
Copy link

ian4hu commented Mar 31, 2022

WeedConfig中包含太多的全局变量,如果多个DbContext的行为不同需要对WeedConfig进行设置,将无法安全实现。
建议将WeedConfig中的全局变量封装到DbContext中。

@ian4hu
Copy link
Author

ian4hu commented Mar 31, 2022

除非必要,尽量不要使用全局变量。

@noear
Copy link
Owner

noear commented Apr 2, 2022

好的。我找个时间调整下:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants